the HTML elements I have are
Yes
Cancel
I want to click the Yes button so I tried the following 3 things
yes_driver2 = driver.find_element(“xpath”, ‘//button[text()=”Yes”]’)
yes_driver2.click()
yes_driver3 = driver.find_elements(By.XPATH, ‘//button[contains(text(), “Yes”]’)
yes_driver3.click()
driver.find_element(‘xpath’,’//button[contains(text(), “Yes”]’).click()
so Ideally I would use class and the button “value” to narrow it down
any ideas on how I would do that?