Access a button with its name in Selenium Python
Question:
Answers:
Show Actions
seems to be the text content of the element.
You can try clicking it with the following way:
driver.find_element(By.XPATH, "//span[contains(text(),'Show Actions')]").click()
Or
driver.find_element(By.XPATH, "//span[contains(.,'Show Actions')]").click()
You will possibly need to add an expected condition to wait for this element clickability, as following:
wait.until(EC.element_to_be_clickable((By.XPATH, "//span[contains(.,'Show Actions')]"))).click()
Show Actions
seems to be the text content of the element.
You can try clicking it with the following way:
driver.find_element(By.XPATH, "//span[contains(text(),'Show Actions')]").click()
Or
driver.find_element(By.XPATH, "//span[contains(.,'Show Actions')]").click()
You will possibly need to add an expected condition to wait for this element clickability, as following:
wait.until(EC.element_to_be_clickable((By.XPATH, "//span[contains(.,'Show Actions')]"))).click()