You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we encounter missing elements with the Unbreakable Selenium, we try to find the old element inside the golden master. Therefore, we query the By used and look what type was used (i.e. By.id, By.class).
However, when we try to find By.xpath, we currently only support simple XPath. Furthermore, we do not follow common format as described in #132. For example, we require:
The current element would mean to selects any element (this also includes any * or no selector) and queries parent, children, state : or pseudo-element ::. Note that the state may only look at the elements' parent or children. Please refer to the examples below. Note that those examples are not complete, refer to the specification for more.
Examples this issue should address
/html/body/div[1]
/html//div[2]
//input[@type=file]
//*[@id="foo"]/summary
Community
I kindly ask the community to provide examples below that should be reflected with this issue, so that we can use these to test the implementation.
The text was updated successfully, but these errors were encountered:
Problem
When we encounter missing elements with the Unbreakable Selenium, we try to find the old element inside the golden master. Therefore, we query the
By
used and look what type was used (i.e.By.id
,By.class
).However, when we try to find
By.xpath
, we currently only support simple XPath. Furthermore, we do not follow common format as described in #132. For example, we require:By.xpath( "//input[1]" );
By.xpath( "/html[1]/body[1]/div[1]" );
This should be the same for
@FindBy
.Solution
We want to support the xpath specification. Note that browsers might only support XPath 1.0.
The current element would mean to selects any element (this also includes any
*
or no selector) and queries parent, children, state:
or pseudo-element::
. Note that the state may only look at the elements' parent or children. Please refer to the examples below. Note that those examples are not complete, refer to the specification for more.Examples this issue should address
/html/body/div[1]
/html//div[2]
//input[@type=file]
//*[@id="foo"]/summary
Community
I kindly ask the community to provide examples below that should be reflected with this issue, so that we can use these to test the implementation.
The text was updated successfully, but these errors were encountered: