Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes and tests for Protocol.windowHandlePosition #341

Merged
merged 1 commit into from Nov 13, 2014
Merged

Fixes and tests for Protocol.windowHandlePosition #341

merged 1 commit into from Nov 13, 2014

Conversation

vmoshynskyi
Copy link

Current Protocol.windowHandlePosition implementation doesn't work in cases when we don't specify tabid (assuming current window).

Examples:

  • client.windowHandlePosition(function(err, res) {
    console.log(res.value);
    });

expecting: object with x and y cordinates of current window

receiving: TypeError: string is not a function

- client.windowHandlePosition({x: 600, y: 100});

expecting: current window movement to cordinates

receiving: nothing happens

Let me know whether something is wrong.

@coveralls
Copy link

Coverage Status

Coverage decreased (-33.2%) when pulling 47d9770 on MoLLIa:master into 98bf634 on webdriverio:master.

@christian-bromann
Copy link
Member

LGTM
Thanks!

christian-bromann added a commit that referenced this pull request Nov 13, 2014
Fixes and tests for Protocol.windowHandlePosition
@christian-bromann christian-bromann merged commit 52056b9 into webdriverio:master Nov 13, 2014
@vmoshynskyi
Copy link
Author

No problem. Just noticed a minor bug in test. Fix is here - 7b81b2f

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.

None yet

3 participants