MarketSquare / robotframework-seleniumlibrary-java

Java port of the Python based SeleniumLibrary for Robot Framework
Apache License 2.0
23 stars 16 forks source link

Get Window Identifiers returns "null" #10

Open Hi-Fi opened 6 years ago

Hi-Fi commented 6 years ago

From @omireault on February 5, 2014 16:22

When I use Select Window to return to the main window, it claims it can't find Window ' '.

When I use Get Window Identifiers, I get the following:

KEYWORD: Selenium2Library.Get Window Identifiers Start / End / Elapsed: 20140205 09:15:31.991 / 20140205 09:15:32.018 / 00:00:00.027 09:15:31.992 TRACE Arguments: [ ] 09:15:32.017 INFO Altogether 2 Window Ids. 1: null 2: null 09:15:32.019 TRACE Return: [null, null]

Not a big deal right, I use the window titles as a work around.

Copied from original issue: MarkusBernhardt/robotframework-selenium2library-java#47

Hi-Fi commented 6 years ago

From @omireault on February 6, 2014 16:18

The select windows with null works to go back to main. I updated the title of the issue to reflect that.

Hi-Fi commented 6 years ago

This is what Selenium returns, so I think there's not much that can be done for it.

Selenium returns data:

[null, , W3Schools Online Web Tutorials, null]

Data is fetched by parsing list which is received from Selenium by:

webDriver.getWindowHandle();

Internal ID creation could be made, but it's enchancement.