healenium / healenium-web

Self-healing library for Selenium Web-based tests
Apache License 2.0
169 stars 40 forks source link

Relative elements search works as a global search #43

Closed sobkoNick closed 4 years ago

sobkoNick commented 4 years ago

There is a case when a user wants to find an element within some parent element then this search is working as a global search, not based on the parent element.

For example, -using selenide: $(By.xpath("parent locator")).find(By.xpath("relative to parent locator")) or with selenium: webDriverUtils.getDriver().findElement(By.xpath("parent locator")).findElement(By.xpath("relative to parent locator")) both actually work as: webDriverUtils.getDriver().findElement(By.xpath("relative to parent locator")).

My environment properties:

4.7.1 3.141.59 5.3.1 3.7.1 2.0.4.1 Gooogle Chrome Version 80.0.3987.132 (Official Build) (64-bit).
GannaChernyshova commented 4 years ago

should save context in findElement to proxy it