On Tue, Mar 27, 2012 at 11:55 AM, Akshay Rudraksha <aksh...@gmail.com> wrote:I am stuck at place where IE unable to get details of new Popup window, i tried to using getWindowHandles() but it just return single window. It's not even wait issue as the window does get open in few sec (I did tried putting sleep)With Firefox and Chrome i am able to get handle of new window...--
--
Akshay Rudraksha
--
--
Akshay Rudraksha
Synechron Technologies Pvt. Ltd,
Wells Fargo Bank,San Francisco,CA
Cell - 1-925-353-8210
Webdriver - 2.20 Latest selenium versionIE - IE8FF and Chrome works fine - Chrome 17....FF- 11Lang Used - JavaSteps to Reproduce --Enter Login Credential hit Sigon it provide you link to Application- By hitting on any of the link will open new Window which is not being recognized.Below is the code i used to Click on link -//Driver.driver.switchTo().window("Commercial Electronic Office");String Login = Driver.driver.getWindowHandle();Driver.driver.findElement(By.xpath("//a[contains(text(),'Exchange')]")).sendKeys(Keys.RETURN);//Thread.sleep(10000);for (String handle1 : Driver.driver.getWindowHandles()) { // This is where i am not getting any window, it just show default Login window...
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To view this discussion on the web visit https://groups.google.com/d/msg/webdriver/-/ozIY5vQ4KhsJ.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
--
--
Akshay Rudraksha
Synechron Technologies Pvt. Ltd,
Wells Fargo Bank,San Francisco,CA
Cell - 1-925-353-8210
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
Webdriver - 2.20 Latest selenium versionIE - IE8FF and Chrome works fine - Chrome 17....FF- 11Lang Used - JavaSteps to Reproduce --Enter Login Credential hit Sigon it provide you link to Application- By hitting on any of the link will open new Window which is not being recognized.Below is the code i used to Click on link -//Driver.driver.switchTo().window("Commercial Electronic Office");String Login = Driver.driver.getWindowHandle();Driver.driver.findElement(By.xpath("//a[contains(text(),'Exchange')]")).sendKeys(Keys.RETURN);//Thread.sleep(10000);for (String handle1 : Driver.driver.getWindowHandles()) { // This is where i am not getting any window, it just show default Login window...
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To view this discussion on the web visit https://groups.google.com/d/msg/webdriver/-/rxiBpERIY1YJ.
IE : 64 bit Version 8.0.7601Selenium Webdriver: Version 2.25.0Java environment: 1.6.0_23I was having ths same issues that Deepak is having accessing the window handle for a popup in my application using IE as the browser. I tried the two alternatives above from Mike Riley and Manoj Hans and got the same result, the getWindowHandle call seems to return the main window handle only. And after using the 2 alternatives above the wait procedure that waits for a new popup handle to be present just waits and never comes out of the loop or timesout. My link is a javascript call to the window.open method and works fine to open up the window. One other observation though is that I get a javascript error in the main popup calling window. Wondering if this could be blocking something from happening. It's odd that i'm getting the javascript errors because when I normally click on this link through the application I'm not getting an javascript errors.Please let me know if anyone knows that this a legitamate bug and will never work and/or if there are other alternatives to accessing the window handles that might work in IE.Bill
This work for me.
Thanks Yang!
On Thursday, March 7, 2013 3:26:42 PM UTC+9, Jay Yang wrote:Hi,I encounter same issue, but it was resolved now.Root cause: On IE 7 or higher on Windows Vista or Windows 7, you must set the Protected Mode settings for each zone to be the same value. The value can be on or off, as long as it is the same for every zone. To set the Protected Mode settings, choose "Internet Options..." from the Tools menu, and click on the Security tab. For each zone, there will be a check box at the bottom of the tab labeled "Enable Protected Mode".Hope it works for you.Thanks,Jay Yang
在 2012年3月29日星期四UTC+8上午1时11分54秒,Akshay Rudraksha写道:
--Jim
[1] http://code.google.com/p/selenium/downloads/list
[2] http://selenium.googlecode.com/git/cpp/prebuilt/Win32/Release. Note that you can also use x64/Release.
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+...@googlegroups.com.
Visit this group at http://groups.google.com/group/webdriver.
For more options, visit https://groups.google.com/groups/opt_out.
Hi,I encounter same issue, but it was resolved now.Root cause: On IE 7 or higher on Windows Vista or Windows 7, you must set the Protected Mode settings for each zone to be the same value. The value can be on or off, as long as it is the same for every zone. To set the Protected Mode settings, choose "Internet Options..." from the Tools menu, and click on the Security tab. For each zone, there will be a check box at the bottom of the tab labeled "Enable Protected Mode".Hope it works for you.Thanks,Jay Yang
在 2012年3月29日星期四UTC+8上午1时11分54秒,Akshay Rudraksha写道:
I am currently automating an application based on IBM Cognos platform using selenium + Cucumber + Internet Explorer and is facing some challenges. I need some expert help from this group on the issues.
Problem Description - Upon clicking a link on the page, new browser get opened. Ideally, getWindowHandles() method returns correct count of browser opened by WebDriver. We switch to 2nd browser using window handle property, further action will be performed on second browser. GetWindowHandles is returning value 1 irrespective of number of browser opened by WebDriver. I have tried following methods –
Environment used –
Selenium WebDriver – 2.39.0
IEDriverServer.exe - Win32_2.39.0
Windows 7
Internet Explorer 8.0
Note – it is working fine on Firefox, this issue is happening on IE only.
Any help/suggestion will be highly appreciated.
--
You received this message because you are subscribed to a topic in the Google Groups "webdriver" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/webdriver/ULInjMbv5mU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to webdriver+...@googlegroups.com.
[1] http://jimevansmusic.blogspot.com/2012/08/youre-doing-it-wrong-protected-mode-and.html
[2] http://jimevansmusic.blogspot.com/2012/12/not-providing-html-page-is-bogus.html?m=1
Try this,,
// before clicking on the link
String parent = driver.getWindowHandle();
// after clicking on the link
Thread.sleep(1000);
Set<String> availableWindows = driver.getWindowHandles();
String newWindow = null;
for (String window : availableWindows) {
if (!parent.equals(window)) {
newWindow = window;
}
}
assertNotNull(newWindow);
// switch to new window
driver.switchTo().window(newWindow);
// do assert the elements in the new window
// and then close the new window
driver.close();
// switch to parent
driver.switchTo().window(parent);
// close main window
driver.close();
hope it helps you :) cheers,,,On Thu, Mar 29, 2012 at 7:17 PM, Akshay Rudraksha <aksh...@gmail.com> wrote:
Webdriver - 2.20 Latest selenium versionIE - IE8FF and Chrome works fine - Chrome 17....FF- 11Lang Used - JavaSteps to Reproduce --Enter Login Credential hit Sigon it provide you link to Application- By hitting on any of the link will open new Window which is not being recognized.Below is the code i used to Click on link -//Driver.driver.switchTo().window("Commercial Electronic Office");String Login = Driver.driver.getWindowHandle();Driver.driver.findElement(By.xpath("//a[contains(text(),'Exchange')]")).sendKeys(Keys.RETURN);//Thread.sleep(10000);for (String handle1 : Driver.driver.getWindowHandles()) { // This is where i am not getting any window, it just show default Login window...
On Thu, Mar 29, 2012 at 5:30 AM, darrell <darrell....@gmail.com> wrote:
Not really a lot to go on here. When you post a question, think of it like posting a defect report. The more information you can provide the more likely the problem will get resolved.
- Which version of WebDriver?
- Which version of IE?
- Which version of Firefox or Chrome?
- Which language are you programming in?
- Do you have an example of the code which opens a window?
- Please provide a list of steps to reproduce.
- Have you looked at the differences in the web page, Firefox versus IE?
With the information you have provided the best you can hope for are wild guesses.
On Wednesday, 28 March 2012 13:11:54 UTC-4, Akshay Rudraksha wrote:
On Tue, Mar 27, 2012 at 11:55 AM, Akshay Rudraksha <aksh...@gmail.com> wrote:I am stuck at place where IE unable to get details of new Popup window, i tried to using getWindowHandles() but it just return single window. It's not even wait issue as the window does get open in few sec (I did tried putting sleep)With Firefox and Chrome i am able to get handle of new window...--
--
Akshay Rudraksha
--
--
Akshay Rudraksha
Synechron Technologies Pvt. Ltd,
Wells Fargo Bank,San Francisco,CA
Cell - 1-925-353-8210
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To view this discussion on the web visit https://groups.google.com/d/msg/webdriver/-/ozIY5vQ4KhsJ.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
--
--
Akshay Rudraksha
Synechron Technologies Pvt. Ltd,
Wells Fargo Bank,San Francisco,CA
Cell - 1-925-353-8210
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
--
Santosh Kumar K