Restores "LegacyWindow" class into a working state #139
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problems solved:
current
meta-handle (only usable for.../position
and.../size
calls) was used, thenLegacyWindow::getHandle
was returning it as-is without converting to a real window handleCloses #138
P.S.
Strange Selenium 3 server (maybe Selenium 2 is also affected) behavior I've noticed during testing:
.../position
and.../size
URLs are returning/accepting array with these keys:x
,y
,width
,height
(while they should only use eitherx
andy
orwidth
andheight
.../position
and.../size
URLs are operating on the current window regardless if the window handle of another non-active window is specifiedI guess, that's a bug in Selenium server itself and not this library.