Skip to content

Remove window name argument; current drivers ignore or fail with current#93

Open
alexharpin wants to merge 1 commit into
forceedge01:masterfrom
alexharpin:feature/resolve-screenshot-issue-with-webdriver
Open

Remove window name argument; current drivers ignore or fail with current#93
alexharpin wants to merge 1 commit into
forceedge01:masterfrom
alexharpin:feature/resolve-screenshot-issue-with-webdriver

Conversation

@alexharpin

Copy link
Copy Markdown

When taking a screenshot, either directly or on failure, passing "current" as the window name argument is currently ignored by both php-webdriver and the dmore mink chrome driver (so has no effect), and causes a failure when used with the oleg-andreyev mink phpwebdriver extension (which checks to see if the window name is passed as a value other than null).

As neither php-webdriver (always using the "current" window handle) or the dmore mink chrome driver (uses it's own JS based method of resizing that doesn't use this value), removing this argument should have no detrimental effect on most (all) use cases.

@alexharpin

Copy link
Copy Markdown
Author

The Selenium 2 driver also defaults to "current" when the name argument is null, so maintains the behaviour of this driver as well (even though it's less likely to be used as it doesn't support the new version of Selenium since they switched to using the W3C protocol).

@alexharpin

Copy link
Copy Markdown
Author

@forceedge01 Just a nudge for when you've got chance to have a look at this; would be nice to remove my local workaround to resolve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant