Bug 1651648 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Currently chrome scope only allows a subset of the [allowed locator strategies](https://w3c.github.io/webdriver/#locator-strategies) from the WebDriver spec.

https://searchfox.org/mozilla-central/rev/85ae3b911d5fcabd38ef315725df32e25edef83b/testing/marionette/driver.js#96-102
https://searchfox.org/mozilla-central/source/testing/marionette/listener.js#89-98

What's basically missing are the following:

```
  element.Strategy.Name,
  element.Strategy.LinkText,
  element.Strategy.PartialLinkText,
```

Given that XUL is gone and we now have XHTML for chrome windows, we should no longer block these strategies.

By doing that the checks if the given strategy is valid only need to be done in driver.js, and can be removed from listener.js.

Maja, would you be interested to work on that bug?
Currently chrome scope only allows a subset of the allowed locator strategies:

https://searchfox.org/mozilla-central/rev/85ae3b911d5fcabd38ef315725df32e25edef83b/testing/marionette/driver.js#96-102
https://searchfox.org/mozilla-central/source/testing/marionette/listener.js#89-98

What's basically missing are the following:

```
  element.Strategy.Name,
  element.Strategy.LinkText,
  element.Strategy.PartialLinkText,
```

Given that XUL is gone and we now have XHTML for chrome windows, we should no longer block these strategies.

By doing that the checks if the given strategy is valid only need to be done in driver.js, and can be removed from listener.js.

Maja, would you be interested to work on that bug?

Back to Bug 1651648 Comment 0