html如下: enter image description here
我尝试了多种方法,例如 driver.find_element_by_css_selector 等。没有工作。请帮忙
最佳答案
在不知道更多信息的情况下,尝试使用 XPATH 和 .click()
driver.find_element_by_xpath('//a[@class="button checkout"]').click()
关于python - 如何使用 selenium 单击 'checkout' 按钮?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42660353/