E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
webdriver
selenium无头模式
fromseleniumimport
webdriver
fromselenium.
webdriver
.firefox.optionsimportOptionsoptions=Options()options.add_argument
Ai_践行者
·
2020-08-13 17:44
爬虫
pycharm selenium unresolved reference selenium
但是使用pycharm新建一个测试项目后并新建一个test01.py文件在文件中导入selenium包,fromseleniumimport
webdriver
提示报错Unresolvedreference'
webdriver
Magiczl
·
2020-08-13 17:27
python
19.Selenium2 自动化测试实战-基于Python语言-记录cookie
fromseleniumimport
webdriver
importtimedriver=
webdriver
.Chrome()driver.get("http://www.youdao.com")'''#
lxting21
·
2020-08-13 15:23
多个用户登录导致python出现’no module named 'selenium'异常解决
之前系统一直使用administrator账户登录,python环境搭建好之后使用正常,最近新建了个账户后,若程序中有“fromseleniumimport
webdriver
”,那么久报错‘nomodulenamed'selenium
lxting21
·
2020-08-13 15:23
Expected conditions模块使用方法汇总代码解析
是Selenium的一个子模块,selenium.
webdriver
.support.expected_conditions可以对网页上元素是否存在,可点击等等进行判断,一般用于断言或与
WebDriver
Wait
·
2020-08-13 15:07
Python爬虫 —— 知乎之selenium模拟登陆获取cookies+requests.Session()访问+session序列化...
代码如下:1#coding:utf-82fromseleniumimport
webdriver
3importrequests4importsys5importtime6fromlxmlimportetree7importcPickle8importos9
alince20008
·
2020-08-13 13:02
Python Unresolved import
fromseleniumimport
webdriver
产生Unresolvedimport:
webdriver
的问题。
W346850397
·
2020-08-13 12:34
python
Python Selenium实现无可视化界面
代码如下fromseleniumimport
webdriver
fromtimeimportsleep#实现无可视化界面fromselenium.
webdriver
.chrome.optionsimportOptions
低调的男孩
·
2020-08-13 11:42
Python
selenium
爬虫
***面
Python
爬取瓜子二手车网站项目
importre,time,redisfromlxmlimportetreefromseleniumimport
webdriver
classGuazi:def__call__(self,*args,**
big-mingming
·
2020-08-13 11:16
python爬虫
Pycharm报错:ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。
一、场景回溯:环境:夜神模拟器+Appium+Python打开Pycharm,直接执行脚本:#coding:utf-8fromappiumimport
webdriver
#desired_caps={}desired_caps
Johnny . Zuo
·
2020-08-13 10:13
Appium
Python3+Selenium Web自动化测试案例分享⑸——登录页面类方法
一、loginPage.py#_*_coding:utf-8_*_fromselenium.
webdriver
.common.byimportByfromPage
疯狂的机器人
·
2020-08-13 10:00
Python3+Selenium Web自动化测试案例分享⑷——页面基础类方法
一、basePage.py#_*_coding:utf-8_*_importtime,osfromselenium.
webdriver
.support.uiim
疯狂的机器人
·
2020-08-13 10:00
东方财富股吧评论爬虫和情绪分析
fromseleniumimport
webdriver
frombs4importBeautifulSoupfromselenium.
webdriver
.chrome.optionsimportOptionsimportjson
zhiyouwoailingboli
·
2020-08-12 22:18
python
数据挖掘
自然语言处理
Python爬虫:获取音乐排行榜单
Python,顺便参考网上的资料写了小脚本用来简单的筛选音乐榜单,第一次涉及相关内容,比较简单浅显,大神请绕步(也欢迎指教,让我多多学习),接下来话不多说直接上代码:fromseleniumimport
webdriver
importcsvimportreimporttimeurl
xcj~
·
2020-08-12 18:55
python
python爬取某宝商品信息
fromseleniumimport
webdriver
fromselenium.
webdriver
.common.keysimportKeysfromselenium.
webdriver
importActionChainsimportconnimport
singlezzz
·
2020-08-12 17:36
酷我歌词爬取--《不将就》
fromseleniumimport
webdriver
importtimeurl='http://bd.kuwo.cn/yinyue/6863662?
juip
·
2020-08-12 17:18
Python爬虫
python——初识Selenium,QQ邮箱登录工具
Python代码:fromseleniumimport
webdriver
fromselenium.
webdriver
.support.waitimport
WebDriver
Waitfromselenium.
webdriver
.supportimportexpected_conditionsasECfromselenium.
webdriver
.common.byimportBy
昕楠
·
2020-08-12 17:59
python
python
Selenium
爬虫虾米音乐
超链接(虾米的链接需要进行凯撒解码)解码后,直接二进制写进文件即可代码获取超链接importtimeimportrequestsfromlxmlimportetreefromseleniumimport
webdriver
fromselenium.
webdriver
.common.byimportByfromselenium.
webdriver
.supportimpo
终年小雪
·
2020-08-12 17:44
爬虫
利用selinum爬取咪咕音乐歌单信息源代码分享
还有很多未完善的地方,因为使用的是ChromeDriver,我们可以直接看到浏览器操作,可以很容易查错执行此代码前请保证已经安装了下列包及ChromeDriver应用程序fromseleniumimport
webdriver
fromselenium.common.exceptionsimportTimeo
nilhurui
·
2020-08-12 16:21
知识点梳理
使用Python下载酷狗音乐
fromseleniumimport
webdriver
aswdkugo_url="https://www.kugou.com/song/#hash=B6880A36D02561912C53831ACF3
某个小学生
·
2020-08-12 16:23
python3.8.1+selenium3.141.0获取表单中最新的一行数据,复用脚本
实现脚本如下:fromseleniumimport
webdriver
importunittestfromtimeimportsleepfromtimeimport*importjsonclasstestInterFace
无边的望
·
2020-08-12 14:12
测试
解决Pycharm无法使用已经安装Selenium的问题
电脑C盘安装python27的时候也安装了selenium,但是最近刚刚使用工具Pycharm,新建工程后,然后建立.py文件后,使用语句:fromselenium.
webdriver
.support.waitimport
WebDriver
Wait
zby_hlx
·
2020-08-12 14:13
爬虫入门--task04
的开发者工具,监控网络请求,并分析用selenium完成爬虫具体流程如下:用selenium爬取https://news.qq.com/的热点精选importtimefromseleniumimport
webdriver
driver
wuyusen123456
·
2020-08-12 14:33
爬虫
Task4 爬取腾讯新闻
爬取腾讯新闻关于‘chromedriver’executableneedstobeinPATH的解决办法用chrome浏览器跑selenium,执行以下脚本:fromseleniumimport
webdriver
dr
weixin_46346544
·
2020-08-12 14:12
unittest 登录加强版
importunittestfromseleniumimport
webdriver
fromtimeimportsleepimportcsvfromselenium.
webdriver
.support.selectimportSelectfromtools.HTMLTestRunnerimportHTMLTestRunnerclassTestLogin
ke xing
·
2020-08-12 13:57
自动化测试unittest
腾讯新闻爬取
腾讯新闻爬取importtimefromseleniumimport
webdriver
driver=
webdriver
.Chrome(executable_path="D:\chromedriver\chromedriver.exe
pickle Rick
·
2020-08-12 13:21
Python爬虫
爬虫------动态HTML处理
1、导入
webdriver
fromseleniumimport
webdriver
importtime2、调用环境变量指定的PhantomJs浏览器创建浏览器对象driver=
webdriver
.PhantomJs
太阳花儿
·
2020-08-12 13:43
Python selenium模拟手动操作实现无人值守刷积分功能
经常为学校的各种刷分而发愁,得知开学无望,日后还要刷课,索性自动化一次,学而不用乃愚昧聪慧四大模块初始化fromseleniumimport
webdriver
if__name__=='__main__'
wx5ecc6bcb4713c
·
2020-08-12 13:01
编程语言
程序员
爬虫
解决:
webdriver
.Firefox错误OSError: [Errno 20] Not a directory:
:[Errno20]Notadirectory:‘/Users/PycharmProjects/automation_framework_demo/myself/geckodriver’driver=
webdriver
.Firefox
weixin_38892128
·
2020-08-12 13:51
Python
Selenium
自动化
python-web自动化-元素定位
#-*-coding:utf-8-*-fromseleniumimport
webdriver
fromselenium.
webdriver
.common.byimportBy#打开Chrome浏览器和百度网页
weixin_34345560
·
2020-08-12 13:06
selenium3 简单使用
fromseleniumimport
webdriver
importtimebrowser=
webdriver
.Chrome()url='https://baidu.com'browser.get(url
weixin_30369087
·
2020-08-12 13:19
Python3+Selenium3自动化测试-(六)
这里来说一说selenium中的等待方式,其实在
webdriver
只有两种类型等待方式,显式等待和隐式等待,之前是在程序运行过程中使用time模块中的sleep进行代码的休眠进行强制等待,是显式等待中的一种极端情况
weixin_30273175
·
2020-08-12 13:14
Python selenium爬取微信公众号文章代码详解
参照资料:selenium
webdriver
添加cookie:https://www.jb51.net/article/193102.html需求:想阅读微信公众号历史文章,但是每次找回看得地方不方便。
·
2020-08-12 12:43
Python selenium如何打包静态网页并下载
:https://www.jb51.net/article/193111.htm遇到的问题:1、单纯使用
webdriver
.Actio
·
2020-08-12 12:43
Selenium
webdriver
添加cookie实现过程详解
一.
webdriver
中常用的cookie方法
webdriver
中提供了操作cookie的相关方法:get_cookies()获得cookie信息add_cookie(cookie_dict)添加cookiedelete_cookie
·
2020-08-12 12:11
爬取房天下二手房房价数据,进行线性回归预测
具体代码如下:1.从房天下爬取烟台二手房数据信息fromseleniumimport
webdriver
frombs4importBeautifulSoupfromselenium.
webdriver
.support.waitimport
WebDriver
Waitimportpandasaspdimportcsvimporttimef
陌若安生ぷ
·
2020-08-12 12:55
python
Mysql
python爬虫-利用selenium爬取淘宝美食
fromseleniumimport
webdriver
fromselenium.common.exceptionsimportTimeoutExceptionfromselenium.
webdriver
.common.byimportByfromselenium.
webdriver
.support.uiimport
WebDriver
Waitfromselenium.
webdriver
.suppor
YOUNGBC
·
2020-08-12 12:08
python爬虫
Python3+Selenium3自动化测试 unittest
│
webdriver
下载地址.txt│自动化测试资料.zip│├─第1章自动化测试课程介绍和课程大纲│课时1:自动化测试课程介绍.mp4│├─第2章自动化测试相关软件安装│课时3:自动化测试环境搭建之python3
qq_38472250
·
2020-08-12 12:44
面试
Python
用户行为
python3使用selenium获取数据的简单使用
http://chromedriver.storage.googleapis.com/index.html我谷歌浏览器版本为所以我下载的是下载好之后exe放在目录下fromseleniumimport
webdriver
importredefgetdata
sunup_yi
·
2020-08-12 12:35
Python
UI自动化测试:网页控制元素定位
#encoding:utf-8fromseleniumimport
webdriver
importjsonimporttimefromselenium.
webdriver
.support.uiimportSelectfromselenium.
webdriver
importActionChainsdriver
飞翔的大黑壮(猫猫)
·
2020-08-12 11:25
初级测试
高级测试
自动化测试
selenium3填坑
最近刚上手Python,直接入手3,没有选择2,IDE选择pycharm,导入
webdriver
自动选择了3.+。不过在调用
webdriver
.FireFox()的时候报错。
phone15062117684
·
2020-08-12 11:24
selenium
Python
Python3+Selenium3自动化测试-(一)
我们可能会要求打开浏览器的窗口处于最大化或者设置为某一特定尺寸的大小,所以我们使用selenium驱动浏览器时设定窗口大小#coding=utf-8importtimefromseleniumimport
webdriver
dri
lvzb86
·
2020-08-12 11:01
selenum
python
Java+Selenium3方法篇1
importorg.openqa.selenium.By;importorg.openqa.selenium.Keys;importorg.openqa.selenium.
WebDriver
;importorg.openqa.selenium.WebElement
夜阑卧听风吹雨,铁马冰河入梦来
·
2020-08-12 11:37
Java+Selenium3方法篇2
1.多窗口切换publicstaticvoidwindow_swtich(
WebDriver
driver){/***@description:*@param:[driver]*@return:void*
夜阑卧听风吹雨,铁马冰河入梦来
·
2020-08-12 11:37
初探selenium3原理
从一个启动浏览器并打开百度网页的代码开始fromseleniumimport
webdriver
driver=
webdriver
.chrome()driver.get('https://www.baidu.com
aiki24745
·
2020-08-12 10:42
python unittest登陆成功测试实例
#-*-coding:utf-8-*-fromseleniumimport
webdriver
importunittest,timefromtimeimportsleepclassloginCase(unittest.TestCase
jody_xx
·
2020-08-12 10:41
软件测试
WebUI自动化环境搭建
环境基本介绍环境说明使用Python+Selenium+
Webdriver
集成开发软件列表1、Python(脚本语言)2、SetupTools、Pip工具(安装包管理工具)3、Selenium包(网页自动化测试
NoamaNelson
·
2020-08-12 10:14
Unittest
爬虫笔趣阁例子
fromlxmlimportetreefromselenium.
webdriver
.support.waitimport
WebDriver
Waitfromselenium.
webdriver
.supportimportexpected_conditionsasESfromselenium.
webdriver
.common.byimportByfromqueueimportQueuefromsele
panjunxiao
·
2020-08-12 10:54
selenium的import 问题
今天在群里面给一哥们解决了一问题,自己也对selenium的其中结构更加深入了解了下:问题描述:fromseleniumimport
webdriver
webdriver
.firefox()可以调用成功,
t_bug1225
·
2020-08-12 00:41
Python+appium+
webdriver
的app自动化脚本录制
1.连接真机或模拟器打开开发者模式,USB线连接手机和电脑,并且在开发者选项当中,开启USB调试或打开模拟器安装appadbinstallXXX.apk2.查询获取已连接设备打开cmd,执行命令adbdevices获取已连接设备列表3.获取元素定位通过打开appium连接手机打开app获取元素定位配置连接(DesiredCapabilities)打开appium启动检查器会话配置连接platfor
黑砂
·
2020-08-12 00:00
app自动化
android
python
上一页
97
98
99
100
101
102
103
104
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他