Chrome启动参数(无界面等)
摘要:参数:--headless 用途:启用无界面模式 参数:--disable-popup-blocking用途:禁用弹出拦截 无界面模式示例: 1 from selenium import webdriver 2 chrome_options = webdriver.ChromeOptions() 3
阅读全文
posted @
2021-11-29 15:21
yuminhu
阅读(396)
推荐(0) 编辑
登录滑块处理
摘要:一些登录页面会有滑块验证,如下图: 首先尝试用selenium按住滑块,脚本如下: el1 = driver.find_element_by_xpath('//*[@id="nc_1_n1z"]') # 按住滑块 ActionChains(driver).click_and_hold(on_elem
阅读全文
posted @
2021-11-29 15:09
yuminhu
阅读(241)
推荐(0) 编辑