wdio-screenshot icon indicating copy to clipboard operation
wdio-screenshot copied to clipboard

argument order for chaining support

Open webOS101 opened this issue 7 years ago • 2 comments

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')

webOS101 avatar May 05 '17 01:05 webOS101

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?

zinserjan avatar May 10 '17 21:05 zinserjan

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

webOS101 avatar May 11 '17 01:05 webOS101