9957/selecting-xpath-multiple-conditions-using-selenium-python
I'm trying to select an element based on multiple conditions but it is throwing an error
choices = driver.find_elements_by_xpath("//div[contains(.,'5') and [contains(@class, 'option')]]")$
Any suggestions??
Use the XPath in either of the following ways :
choices = driver.find_elements_by_xpath("//div[contains(.,'5') and contains(@class, 'option')]") or choices = driver.find_elements_by_xpath("//div[contains(.,'5')][contains(@class, 'option')]")
@Beforesuite annotated method runs before the testNG.XML ...READ MORE
There is a minor syntax error in ...READ MORE
Use like this or similar to this: //div[@id="top-level-menu-item-3"]/div[@class="filter-label"] //div[@id="top-level-menu1"] ...READ MORE
The better way to handle this element ...READ MORE
enable trusted connection in internet explorer by ...READ MORE
To Allow or Block the notification, access using Selenium and you have to ...READ MORE
xpath are two types. 1) Absolute XPath: /html/b ...READ MORE
Below code will help you: Try following-sibling axis : WebElement ...READ MORE
You should try to directly log in ...READ MORE
OR
Already have an account? Sign in.