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
Hello, when trying to use the xpath below in the recently released version, the error "Unable to convert XPath Selector to CSS Selector" is returning. I reinstalled version 4.24.12 and everything worked again
xpath_bet = f"(//span[(text()='Arsenal') or (text()='Luton')]/ancestor-or-self::div[@class='_3-Kwf']//button)[1]"
driver.uc_click(xpath_bet , by="xpath")
The text was updated successfully, but these errors were encountered:
uendelbatista
changed the title
Errro "Unable to convert XPath Selector to CSS Selector" in seleniumbase 4.25.0
Error "Unable to convert XPath Selector to CSS Selector" in seleniumbase 4.25.0
Apr 3, 2024
That's a long & messy XPath you have there. Might not even be valid, and even if it was somehow, it would need a CSS equivalent because uc_click() requires JS, which needs selectors to be in CSS Selector format. Use a CSS Selector instead, or a valid XPath that has a CSS Selector equivalent. Not all XPaths can be directly translated into matching CSS Selectors, but all elements can be expressed via CSS Selector, so just give it a CSS Selector directly instead.
Hello, when trying to use the xpath below in the recently released version, the error "Unable to convert XPath Selector to CSS Selector" is returning. I reinstalled version 4.24.12 and everything worked again
The text was updated successfully, but these errors were encountered: