I am trying to find and click on the second sibling of an element that is identified by two conditions using By.XPATH
in the following table:
Type == "Renewal"
and Seq# == 1
, but I cannot seem to make the two conditions work:
driver.find_element(By.XPATH, f"//td[@text()='Renewal' and text()='1']/followingsibling::td[2]/a").click()