Click button by text using Python and Selenium

前端 未结 3 2136
逝去的感伤
逝去的感伤 2021-01-04 05:30

Is it possible to click multiply buttons with the same text with Selenium?

3条回答
  •  误落风尘
    2021-01-04 06:33

    I had the following in html:

    driver.find_element_by_xpath('//button[contains(text(), "HELLO")]').click()
    

提交回复
热议问题