RESOLVED FIXED 180187
WebDriver: locator strategy should be validated before trying to find elements
https://bugs.webkit.org/show_bug.cgi?id=180187
Summary WebDriver: locator strategy should be validated before trying to find elements
Carlos Garcia Campos
Reported 2017-11-30 03:17:24 PST
We currently rely on the js atom to raise an exception in case the locator strategy is not valid, but in case of find element from element, if the element doesn't exist we fail with stale element error instead of invalid argument as expected. So, let's validate the strategies when parsing them, which would also avoid going to the browser in cae of invalid strategy.
Attachments
Patch (2.34 KB, patch)
2017-11-30 03:19 PST, Carlos Garcia Campos
clopez: review+
Carlos Garcia Campos
Comment 1 2017-11-30 03:19:20 PST
Carlos Garcia Campos
Comment 2 2017-11-30 05:48:56 PST
Radar WebKit Bug Importer
Comment 3 2017-11-30 05:50:26 PST
Note You need to log in before you can comment on or make changes to this bug.