📜  python代码示例中的自动点击器

📅  最后修改于: 2022-03-11 14:47:13.926000             🧑  作者: Mango

代码示例4
def click_me(string):
    driver.find_element_by_xpath("//h3/a[@class='co-product__anchor' and contains(@title, '%s')]//following::button[1]" % (string)).click()