abhi111abhishek / selenium-vba

Automatically exported from code.google.com/p/selenium-vba
0 stars 0 forks source link

getAllWindowNames method fails #51

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Operating system : Win 7
.Net Framework version :
Office Version : 2010
SeleniumWrapper version : 1.0.16

What is your issue ?

I am not able to get names of all open windows using "driver.getAllWindowNames" 
method.
I get an error (pls see attached) when i use this method.
Can you pleas help me use this method correctly or with any other way to get 
window names.

Original issue reported on code.google.com by rohan.ka...@gmail.com on 6 Feb 2014 at 10:44

Attachments:

GoogleCodeExporter commented 9 years ago
Unfortunately this command is not supported by the Selenium .Net web driver and 
is part of Selenium 1 which tends to be deprecated in favour of Selenium 2.
I will update the error message to make it more explicit for the next release.
I suggest you to use the getAllWindowsTitles instead, and if you really need 
the window's name attribute, then you can use the executeScript command:
window_name = driver.executeScript("return window.name;")

Original comment by florentbr on 7 Feb 2014 at 1:54

GoogleCodeExporter commented 9 years ago

Original comment by florentbr on 8 Sep 2014 at 5:40