美文网首页
python selenium滑动到指定元素操作2

python selenium滑动到指定元素操作2

作者: 戒灵 | 来源:发表于2019-06-24 16:49 被阅读0次

python selenium滑动到指定元素操作
指定到元素xpath为:"//div[contains(@class,'button_{0}')]//input" 的位置

elSlider = driver.find_element_by_xpath("//div[contains(@class,'button_{0}')]//input".format(page_coupon))
ActionChains(driver).move_to_element_with_offset(elSlider, 1, 1).click_and_hold().perform()
ActionChains(driver).release().perform()
旺达.gif

相关文章

网友评论

      本文标题:python selenium滑动到指定元素操作2

      本文链接:https://www.haomeiwen.com/subject/ccmoqctx.html