Closed Stringer26 closed 4 years ago
int() is due to the way JSON gets encoded and sent over the wire, along with driver authors not being particularly careful with their inputs and doing the coercions like they used to.
I'll build a patch based on these suggestions soon.
Double click is broken. There are 2 bugs. One is obvious and the other puzzles me a bit.
Using chrome $driver->double_click gives the following error:
What's happening is that the button number is being sent as the string "0" rather than 0. A brutal fix is to replace line 1613 of Driver.pm with
$button = int(_get_button($button));
I must admit I'm not sure why this is necessary.After doing this one gets another bug.
This one's obvious. You need to add
return 1;
after line 1675 in Driver.pm.Firefox doesn't suffer from the first bug but it is by the second one.