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
python3 selenium 无头浏览器 无界面 chromedriver
第一种fromseleniumimport
webdriver
#创建chrome参数对象opt=
webdriver
.ChromeOptions()#把chrome设置成无界面模式,不论windows还是linux
whatday
·
2020-08-12 00:34
遇到python调用selenium库使用chrome时候报错 selenium.common.exceptions.
WebDriver
Exception问题
遇到selenium.common.exceptions.
WebDriver
Exception问题selenium.common.exceptions.
WebDriver
Exception:Message
雷飞虎
·
2020-08-12 00:04
解决python环境下安装了selenium,但仍然报错问题ImportError: No module named 'selenium'
前几天,部署了自动化测试环境:python+selenium安装了python,pip和selenium,都是根据网上的教程走的,但是在Pycharm中写入fromseleniumimport
webdriver
Mrs Wang
·
2020-08-12 00:11
Python
Selenium
from selenium.
webdriver
.common.keys import Keys
2019独角兽企业重金招聘Python工程师标准>>>['ADD', 'ALT', 'ARROW_DOWN', 'ARROW_LEFT', 'ARROW_RIGHT', 'ARROW_UP', 'BACKSPACE', 'BACK_SPACE', 'CANCEL', 'CLEAR', 'COMMAND', 'CONTROL', 'DECIMAL', 'DELETE', 'DIVIDE', 'DOW
weixin_34082854
·
2020-08-11 23:06
解决ImportError: cannot import name
webdriver
最近在写一个Python程序的时候,使用fromseleniumimport
webdriver
,在run的时候却出现ImportError:cannotimportname
webdriver
的提示,但是在
weixin_34077371
·
2020-08-11 23:35
selenium+python京东自动登录及秒杀
运行环境:python2.7python安装selenium安装
webdriver
(这里是firefox)其中selenium可以采用pip安装:pipinstallselenium
webdriver
下载地址需要注意的是
ultrakin
·
2020-08-11 23:02
Python学习
python
selenium
Task5 安装selenium并学习,登录163.邮箱
coding:utf-8-*-#@Time:2019/3/59:00#@Author:StalloneYang#@File:05_selenium_163.py#@desc:fromseleniumimport
webdriver
importtimeweb
StalloneYang
·
2020-08-11 23:19
python
selenium
爬虫
Selenium爬取京东商城商品基本信息并写入csv
而且通过循环翻页方法会存在数据重复直接上代码importtimeimporturllib.parseimportpandasaspdfrombs4importBeautifulSoupfromselenium.
webdriver
.common.action_chainsimp
Elric_01
·
2020-08-11 22:15
爬虫
Selenium(
WebDriver
)+ python 脚本编写教程
安装完Selenium(
WebDriver
)+python+Pycharm后,可以学习编写脚本了。
Alance9
·
2020-08-11 22:30
软件测试笔记
selenium.common.exceptions.
WebDriver
Exception
爬取网页报下面错误selenium.common.exceptions.
WebDriver
Exception:Message:'chromedriver.exe'executableneedstobeinPATH.Pleaseseehttps
qq_40202812
·
2020-08-11 22:20
from appium import
webdriver
报错,ImportError: cannot import name 'InvalidArgumentException'
执行appium程序时遇到如下报错,ImportError:cannotimportname'InvalidArgumentException',报错原因selenium.common.exceptions.py中未定义InvalidArgumentException类,导致出现该报错,我的解决办法是在selenium.common.exceptions.py中直接定义了InvalidArgume
Apple mummy
·
2020-08-11 22:39
Appium
Java selenium学习笔记
Javaselenium学习笔记1.了解seleniumseleniumRCseleniumIDE:录制脚本的工具selenium
webdriver
seleniumGrid:分布式的工具,如果需要在不同电脑上同时跑脚本
elaine_1121
·
2020-08-11 22:40
测试工具
python爬虫 selenium、PyQuery 爬取京东商城
~网址:https://www.seleniumhq.org/docs/第一步需求分析:1)自动搜索商品2)获取搜索结果的数据来个分割线第二步上代码啊:功能编写模块fromseleniumimport
webdriver
fromselenium.
webdriver
.common.byimp
Mr Zheng
·
2020-08-11 22:19
爬虫
python+selenium安装过程出现ImportError: No module named selenium问题
fromseleniumimport
webdriver
fromselenium.common.exceptionsimportNoSuchElementExceptionfromselenium.
webdriver
.common.keysimportKeysimporttimebrowser
TestYcy
·
2020-08-11 21:07
python selenium中如何测试360等基于chrome内核的浏览器
fromselenium.
webdriver
.chrome.optionsimportOptionsfromseleniumimport
webdriver
fromselenium.
webdriver
.common.keysimportKeysimporttime
上帝De助手
·
2020-08-11 21:57
selenium
python+selenium 之from导入
webdriver
报错的一个新手常见的坑
本人新手,在一次新建测试项目后编写导入
webdriver
模块:fromseleniumimport
webdriver
发现在
webdriver
下面标红波浪线,且本来需要调用其他模块的时候居然也调用不起来:
W5412526689
·
2020-08-11 20:51
Selenium-python——异常(selenium.common.exceptions.StaleElementReferenceException: Message: stale eleme)
代码如下fromseleniumimport
webdriver
importtimeimportrandomdriver=
webdriver
.Chrome()driver.get("http://www.
CaiJin1217
·
2020-08-11 20:31
Python爬虫
selenium学习笔记
一、概念:selenium是一个自动化测试框架,主要用到
webdriver
。
执笔写回憶
·
2020-08-11 20:12
selenium
selenium
selenium模拟点击京东商城搜索页产品
/usr/bin/envpythonimporttimefromseleniumimport
webdriver
fromselenium.
webdriver
importChromeOptionsfromselenium.
webdriver
.common.keysimportKeysfromselenium.
webdriver
.support.uiimport
执笔写回憶
·
2020-08-11 20:11
selenium
python
python项目
如何解决Python调用 from selenium import
webdriver
提示
WebDriver
Exception( selenium.common.exceptions.Web '
如何解决Python调用fromseleniumimport
webdriver
提示raise
WebDriver
Exception(selenium.common.exceptions.
WebDriver
Exception
尤川蚩梦
·
2020-08-11 20:46
webdriver
python3 selenium 元素定位之JQuery定位
我们常用并熟知的元素定位有8种,而JQuery定位是8种之外的定位方法,相对于js定位,JQuery语法比较简洁一些下面我详细讲解JQuery定位的使用fromseleniumimport
webdriver
fromtimeimportsleepdr
shawn xie123
·
2020-08-11 19:27
selenium
iOS_UI自动化01篇:Mac端Appium自动化测试环境配置
且appium扩展了
WebDriver
的协议,以前WebDr
程序员-小幸
·
2020-08-11 19:44
自动化测试
UI自动化
测试流程
获取元素属性get_attribute
1、想要获取属性值,可以使用get_attribute2、代码操作#coding=utf-8fromappiumimport
webdriver
desired_caps={'platformName':"
weixin_30876945
·
2020-08-11 18:24
Appium连接华为真机教程
请用数据线连接电脑,进入开发者模式中,开始USB调试)3、打开cmd,输入命令adbdevices4、打开appium,在pycharm上运行代码,这时手机上的app开始运行#导包fromappiumimport
webdriver
importtime
victor_177
·
2020-08-11 18:51
WebDriver
环境搭建使用
1.
WebDriver
简介利用浏览器原生的API,封装成一套更加面向对象的Selenium
WebDriver
API。
孙悟空空
·
2020-08-11 18:59
javaweb
java
selenium利用cookie减少重复登录
安装安装的主要问题就是
webdriver
的版本号问题,需要完全一致,我就是没有注意自己Chrome已经升级了一个小版本,结果运行不起来。
高龄程序员
·
2020-08-11 17:43
如何写一个Xss Bot
xssbot就是代替管理员去完成点击页面的任务,bot需要能够执行js,事情的本质是我们需要一个浏览器内核来解析jsxssbot一般会用selenium+
webdriver
webdriver
一般有3种chrome
webdriver
diecai2192
·
2020-08-11 16:39
php
运维
python
解决selenium被服务器屏蔽的方法
解决selenium被服务器屏蔽的方法欢迎使用Markdown编辑器今天想使用selenium爬一下BOSS直聘,但是使用selenium.
webdriver
却get不到我想要的网页。
weixin_44887245
·
2020-08-11 14:38
Selenium自动化测试工具——以爬取京东商品信息为例
需要安装的包importrefromseleniumimport
webdriver
fromselenium.common.exceptionsimportTimeoutExceptionfromselenium.
webdriver
.common.byimportByfromselenium.
webdriver
.support.uiimport
WebDriver
Waitfromselenium.we
FLYING TARDIS
·
2020-08-11 14:40
Python
selenium
Python
京东
自动化测试
综合使用python爬虫技术,selenium模块动态抓取“视觉中国”网站上的图片的url
一、导入模块importtimefromseleniumimport
webdriver
fromlxmlimportetree本文章纯粹用来练手,于是我使用了etree,其实光使用find_elements
忆雨星辰
·
2020-08-11 14:32
python
爬虫
selenium
selenium+Chrom爬取京东数据
fromseleniumimport
webdriver
importtimeclassJdSpider(object):def__init__(self):self.url='https://www.jd.com
回眸忆梦
·
2020-08-11 13:58
爬虫
第一个selenium代码
/usr/bin/python#-*-coding:UTF-8-*-#id定位fromseleniumimport
webdriver
fromtimeimportsleepdriver=
webdriver
.Firefox
gracesyuan
·
2020-08-11 12:45
selenium
selenium
webdriver
调用高版本Firefox配置geckodriver
通过pycharm安装selenium1,配置好python和pycharm,运行pycharm,点击左上角的File->Setting,点击右侧的添加按钮2,在弹出的窗口中搜索selenium,选中selenium,点击左下角installpackage,就可以完成安装。3,新建一个.py类型的文件,输入我的第一段自动化测试代码~#coding=utf-8fromseleniumimportwe
夏微凉秋微暖
·
2020-08-11 12:25
自动化测试
python爬取京东商品信息及评论
功能:通过chromeDrive进行模拟访问需要爬取的京东商品详情页(https://item.jd.com/100003196609.html)并且程序支持多个页面爬取,输入时以逗号分隔,思路:创建
webdriver
薛康阿
·
2020-08-11 12:41
Python爬虫实战:Selenium+BeautifulSoup实现对京东商品完整数据的爬取
Python爬虫:使用Selenium完整爬取京东每页数据一、完整代码及注释分析二、图片辅助分析三、运行结果一、完整代码及注释分析fromseleniumimport
webdriver
importtimeimportosfromselenium.
webdriver
.chrome.optionsimportOptionsfromselenium.
webdriver
importChromeOption
Code皮皮虾
·
2020-08-11 12:46
Python
selenium 超时机制
Selenium2.0java的一个简单示例如下:
WebDriver
driver=newFirefoxDriver();//启动firefox浏览器driver.manage().window().maximize
pehaps
·
2020-08-11 10:31
webdriver
selenium
webdriver
selenium org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with
对于在使用
webdriver
和selenium的时候,如果使用过findelement这个函数时,机器有时会报错:org.openqa.selenium.remote.UnreachableBrowserException
pehaps
·
2020-08-11 10:31
webdriver
selenium
获取vip cookies抓取vip视频——模拟登录
账号,selenium,chromedriver,mysql原理:使用vip账号模拟登陆,获取cookies,使用该cookies即可抓取付费视频代码:#utf-8fromseleniumimport
webdriver
importpymysqlimportjsonfromselenium.
webdriver
.chrome
s_kangkang_A
·
2020-08-11 04:41
爬虫实战
解决chromedriver无法click element的问题:Element is not clickable at point (326, 792.5)
使用chromedriver测试,有时候因为页面没加载完成或者Element的中心位置无法click(或者有其他东西覆盖在这个element上),导致click这个Element引发
WebDriver
Exception
navyhu
·
2020-08-11 03:13
selenium
自动化测试
middlewares.py
1.数据需要selenium解析后才能呈现#middlewares.pyfromscrapyimportsignalsimportscrapyfromseleniumimport
webdriver
fromselenium.
webdriver
.chrome.optionsimportOptionsimporttimeclassChromedriverMiddleware
anbingzhong1132
·
2020-08-11 02:45
Selenium IDE介绍
与Selenium
WebDriver
和RC不同,它不需要任何编程逻辑来编写其测试脚本,而只需记录与浏览器的交互以创建测试用例。之后,可以使用播放选项重新运行测试用例。
iSelenium
·
2020-08-11 01:32
Selenium
WebDriver
app测试单排日记-2020/5/2-Python+unittest
1.unittest测试框架#导包importunittestfromappiumimport
webdriver
fromtimeimportsleepclassTest(unittest.TestCase
Mango学习日记
·
2020-08-10 22:52
软件测试
selenium设置phantomjs和chrome请求头
selenium设置phantomjs请求头fromseleniumimport
webdriver
fromselenium.
webdriver
.common.desired_capabilitiesimportDesiredCapabilitiesfromfake_useragentimportUserAgentua
newdas123
·
2020-08-10 18:11
selenium
ImportError: sys.meta_path is None, Python is likely shutting down
代码如下:fromseleniumimport
webdriver
b=
webdriver
.Chrome()b.get('http://192.168.100.21:9199/scyx')b.maximize_window
好吃的糯米团团
·
2020-08-10 16:04
自动登录开源中国 发表弹一弹
#coding:utf-8fromosimportenvironfromseleniumimport
webdriver
fromselenium.
webdriver
.common.keysimportKeyschromedriver
chexun2515
·
2020-08-10 15:03
【Katalon Automation Recorder录制/导出脚本】Java(
WebDriver
+ jUnit + POI) 配置,附一些运行时错误的解决办法【Eclipse + Chrome】
最近学习的课程中要求使用SeleniumIDE来录制/导出脚本,在Eclipse中用jUnit+
WebDriver
的配置来做一些简单的测试。
FUNI
·
2020-08-10 14:57
jUnit
Katalon
Automation
Recorder
Selenium
IDE
【自动化测试】selenium的底层实现是怎么样的?
1.
WebDriver
类2.打开浏览器驱动程序3.打开浏览器三、执行selenium各种
Moo_Lavender
·
2020-08-10 14:04
软件测试
selenium无界面chromedriver
方法一:fromseleniumimport
webdriver
#创建chrome参数对象opt=
webdriver
.ChromeOptions()#把chrome设置成无界面模式,不论windows还是
莺声门径
·
2020-08-10 10:41
软件测试
Selenium 中
WebDriver
Wait()方法小计
WebDriver
Wait()显示等待,语法格式如下:
WebDriver
Wait(self,driver,timeout,poll_frequency=POLL_FREQUENCY,ignored_exceptions
莺声门径
·
2020-08-10 10:41
软件测试
Selenium关闭多余窗口保留当前窗口
fromseleniumimport
webdriver
d1=
webdriver
.Chrome()d1.maximize_window()d1.get(Firsturl)#代码简化了,之后,点击连接打开新的标签页
莺声门径
·
2020-08-10 10:40
Python编程
小技巧
上一页
98
99
100
101
102
103
104
105
下一页
按字母分类:
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
其他