标签:max arguments 下拉 support nts driver comm action condition
from selenium import webdriver from selenium.common.exceptions import NoSuchElementException from selenium.webdriver.common.by import By from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.support import expected_conditions as EC, wait from selenium.webdriver.support.wait import WebDriverWait driver = webdriver.Chrome() driver.maximize_window() div=driver.find_element_by_xpath(‘//div[@class="title-tab text-center"]‘) # 滑动滚动条到某个指定的元素 js4 = "arguments[0].scrollIntoView();" # 将下拉滑动条滑动到当前div区域 dirver.execute_script(js4, div)
标签:max arguments 下拉 support nts driver comm action condition
原文地址:https://www.cnblogs.com/sea-stream/p/10363194.html