<input id="txtBeginDate" style="width:170px;padding:7px 10px;border:1px solid #ccc;margin-right:10px;" readonly="">方法1、直接定位方法2、移除readonly属性变输入from sel ...
分类:
编程语言 时间:
2020-04-26 16:43:57
阅读次数:
142
selenium 1、导入模块: :from selenium import webdriver # 启动浏览器需要用到 from selenium.webdriver.common.keys import Keys 2、创建一个WebDriver实例: driver = webdriver.Chr ...
分类:
其他好文 时间:
2020-04-26 09:21:12
阅读次数:
76
今天这个功能完全是由于自己在实现自己需求的过程中走岔了。不过还是记录一下 使用的是selenium库 首先引入库 from selenium import webdriver from selenium.webdriver.common.keys import Keys(一个驱动浏览器,一个用于输入 ...
分类:
编程语言 时间:
2020-04-25 23:32:51
阅读次数:
103
from selenium import webdriver from selenium.webdriver.chrome.options import Options # => 引入Chrome的配置 import time # 配置 ch_options = Options() ch_optio ...
分类:
其他好文 时间:
2020-04-25 17:13:43
阅读次数:
118
1、问题描述: 在使用selenium模块时,遇到问题:selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https:// ...
分类:
Web程序 时间:
2020-04-25 11:00:25
阅读次数:
148
针对下拉框定位不到、弹出框定位不到、正常控件定位不到。。。 除了iFrame的问题,主要是没有加等待导致的 1.强制等待 sleep(x) x单位为s 隐性等待和显性等待可以同时用。 注意:等待的最长时间取两者之中的大者 2.隐性等待 implicitly_wait(x) x单位为s 隐性等待如果定 ...
分类:
编程语言 时间:
2020-04-24 17:29:45
阅读次数:
102
Environment "Ubuntu 16.04 LTS" install selenium You can use pip install selenium, maybe specify the version Download ChromeDriver this "website" downl ...
分类:
系统相关 时间:
2020-04-24 13:16:08
阅读次数:
94
使用selenium实现谷歌以图搜图 实现思路 原理非常简单,就是利用selenium去操作浏览器,获取到想要的链接,然后进行图片的下载,和一般的爬虫无异。 用到的技术:multiprocessing,selenium,xpath,requests 以下按照代码执行的顺序进行讲解。 首先导入需要的包 ...
分类:
其他好文 时间:
2020-04-23 16:18:35
阅读次数:
75
转自:https://www.cnblogs.com/xiaoxiaolvdou/p/9316805.html selenium切换到iframe 定位iframe1.有id,并且唯一,直接写iddriver.switch_to_frame("x-URS-iframe")driver.switch_ ...
分类:
Web程序 时间:
2020-04-22 20:00:03
阅读次数:
73