Closed molinacarlos closed 1 year ago
In xpath, ::
does not have an equivalent CSS Selector operator. (Note the following Stack Overflow post, https://stackoverflow.com/questions/20072319/css-equivalents-for-xpath-axes, which has been open for 10 years without an answer.)
If using CSS Selectors is necessary for something that you're doing in SeleniumBase (such as for a JavaScript call), then try a different xpath selector, or use a CSS Selector directly. The SeleniumBase Recorder can help you generate a script with the correct selectors. (See https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/recorder_mode.md)
NOTE: There are CSS Selectors that use ::
(https://www.w3schools.com/cssref/css_selectors.php), but it means something different from the xpath ::
. SeleniumBase also has the ::shadow
selector (https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/shadow_dom.md).
Greetings.
Trying to use some xpath selectors, but get this error from seleneiumbase, trying to use the following selector
//*[text()='Identificación']//following::input
In a test case.
Note at this line
xpath = "//*[text()='Identificación']/descORself/following::input", original = "//*[text()='Identificación']//following::input"
See the "descORself" string
IMPORTANT: It works on selbase 1.37.14, but isn't work on selbase 4.9.5
Thanks in advance for any advice :-)