Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
With this change, each WebDriver implementation needs to take responsibility for handling locators. In the case of the classes that extend `RemoteWebDriver` (which is most of them), we first check to see if a locator directly supports remote location. If it does, we try to find the element that way first. If that fails in a way that indicates that the remote end didn't understand the search mechanism, we fall back to passing the search context to the locator. In order to be as efficient as possible, drivers store a map of which search strategy should work.
- Loading branch information
Showing
9 changed files
with
590 additions
and
362 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.