I'm using Python Selenium, and I need help to detect the XPath expression of the ::before and that it is accepted by the Python characters. How can I do it?
I try to detect the text after the ::before. I achieved it with this XPath expression, but that didn't work for me in Python:
//div[contains(@data-ui-id , "checkout-cart-validationmessages-message-error")][.]/text()
source https://stackoverflow.com/questions/76011448/how-can-i-detect-the-text-of-a-before-or-after-without-using-text-in-python
Comments
Post a Comment