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.13.141.595.3.13.7.12.0.4.1
Gooogle Chrome Version 80.0.3987.132 (Official Build) (64-bit).
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: