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

argument order for chaining support #73

Open
webOS101 opened this issue May 5, 2017 · 2 comments
Open

argument order for chaining support #73

webOS101 opened this issue May 5, 2017 · 2 comments

Comments

@webOS101
Copy link

webOS101 commented May 5, 2017

Curious why the argument order is different from current webdriverio commands? Changing the selector order around could allow for element chaining. E.g.:

browser.element('#myDiv').saveElementScreenshot('myFile.png')
@zinserjan
Copy link
Owner

Good question. I think I did this to keep them more similar to the other screenshot commands. So there's no real reason for this.

Can you verify that this will work when we just switch the order of them?

@webOS101
Copy link
Author

I can't promise to get to this in a timely manner but I will see if I have time this weekend.

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

No branches or pull requests

2 participants