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
Python爬虫:selenium打开新窗口和多窗口切换
*-coding:utf-8-*-#@File:switch_tab.py#@Date:2018-07-27#@Author:PengShiyuimporttimefromseleniumimport
webdriver
browser
彭世瑜
·
2020-08-14 18:39
python
xcode构建
webdriver
Agent时报错Messaging unqualified id的解决办法
在使用xcode构建
webdriver
Agent时,提示buildfailed,报错信息为:semanticissue:Messagingunqualifiedid,可以参考以下解决方案xcode版本:
梦琪丁岚
·
2020-08-14 18:03
【4】自动化测试
python+selenium随机添加用户自动化测试脚本
fromseleniumimport
webdriver
importtimeimportrandomglobaluserName,userPassword#为了便于使用,定义为全局变量userName='
lxting21
·
2020-08-14 17:43
python3,网络爬虫学习,Selenium自动化测试工具的使用
有些网页Ajax接口含有很多加密参数,很难直接分析Ajax来抓取#解决方法是使用模拟浏览器运行的方式来爬取,本章主要学习Selenium和Splash的使用#1、基本使用fromseleniumimport
webdriver
fromselenium.
webdriver
.common.byimportByfromselenium.
webdriver
.common.key
luslin
·
2020-08-14 17:10
mac安装部署selenium(Chrome)
一、安装Python3.X安装python3.1以上版本,步骤略二、下载seleniumpip3installselenium三、部署
webdriver
下载
webdriver
地址:https://sites.google.com
彳郑哥哥亍
·
2020-08-14 17:08
笔记
学习
【selenium学习笔记】常用的WebElement接口
直接上实例:fromseleniumimport
webdriver
driver=
webdriver
.Firefox()driver.get('http://ww.baidu.com')#获取页面titleprintdriver.titledriver.maximize_wi
liuchunming033
·
2020-08-14 17:05
Selenium
Sikuli 集成Selenium
Webdriver
上传文件-- Java
Sikuli集成Selenium
Webdriver
--Java目录Sikuli简介主要目的环境设置第一种第二种用Sikuli上传文件代码解释结论目录Sikuli简介Sikuli是由MIT(麻省理工学院)
Lucas__liu
·
2020-08-14 17:38
Java
自动化测试
selenium
自动化测试
pycharm(Mac 版本)中
webdriver
.chrome()执行报错
fromseleniumimport
webdriver
deftest1():url='http://www.baidu.com'driver=
webdriver
.chrome()driver.get(url
Bongbabongka
·
2020-08-14 17:32
python
java使用selenium3
selenium的介绍及背景这里不再说明,直接百度能看到很多文章,话不多说上代码//在System中配置谷歌驱动的路劲System.setProperty("
webdriver
.chrome.driver
fx9590
·
2020-08-14 17:09
爬虫
爬虫
python+selenium+wewbdriver 上传文件
input类型1、使用
webdriver
的send_keys方法:deftest_uploadFileBySendKeys(self):url="file:///Users/doudou/Desktop
test_豆
·
2020-08-14 17:06
ui自动化-selenium
判断Selenium加载完成
YoucanalsocheckpageloadedusingfollowingcodeIWaitwait=newOpenQA.Selenium.Support.UI.
WebDriver
Wait(driver
dianyin7770
·
2020-08-14 17:28
【转】Selenium
WebDriver
的简单操作说明
Java代码importjava.io.File;importorg.openqa.selenium.
WebDriver
;importorg.openqa.selenium.firefox.FirefoxBinary
bwgang
·
2020-08-14 16:11
Selenium
webdriver
安装使用(以chrome为例)
webDriver
的安装步骤和使用说明(以chrome为例)1.查看自己chrome的版本2.下载浏览器版本对应的chromeDrivechrom驱动下载地址:http://npm.taobao.org
荒荒的大凤梨
·
2020-08-14 16:02
自动化测试
WebDriver
Agent配置
参考文章:https://testerhome.com/topics/7220操作环境:MAC1.必须安装XCODE2.下载
WebDriver
Agent,并安装Carthage,brewinstallcarthage
anywayiknow
·
2020-08-14 16:36
工具
selenium控制浏览器为手机模式
#-*-coding:utf-8-*-fromseleniumimport
webdriver
fromtimeimportsleepmobileEmulation={'deviceName':'AppleiPhone4
ankuai2015
·
2020-08-14 16:31
web前端开发需要具备的技能
编写HTML代码需遵循HTML代码规范(http://www.cnblogs.com/
webDriver
/p/7050911.html)。
afaveuuqyuftee6037
·
2020-08-14 16:13
前端
后端
前端框架
Mac下使用Python selenium遇到的关于
webdriver
的问题记录:selenium.common.exceptions.
WebDriver
Exception: Message:...
有一次想修改chromedriver的路径,结果无论如何代码都会抛出异常:selenium.common.exceptions.
WebDriver
Exception:Message:'chromedriver.exe'executableneedstobeinPATH.Pleaseseehttps
a986017181
·
2020-08-14 16:07
python爬虫--selenium等待页面加载
python爬虫,使用selenium等待页面加载完成后,获取页面信息指定等待时长内没有加载完成,抛出异常fromseleniumimport
webdriver
fromselenium.common.exceptionsimportTimeoutExceptionfromselenium.
webdriver
.support.uiimport
WebDriver
Waitbrowser
binbinbug
·
2020-08-14 16:08
爬虫
mac安装selenium
下载seleniumpipinstallselenium下载chromedrive下载地址:ChromeDriver-
WebDriver
选择相应版本进行下载。
罗德2020
·
2020-08-14 16:07
爬虫
Python爬虫-selenium模块
文章目录selenium模块基本使用解析数据等待元素加载动作链执行jsxpath解析数据案例selenium模块基本使用fromselenium.
webdriver
importChrome#导入自定义配置模块
zdc45625
·
2020-08-14 15:41
Python爬虫
Python爬虫 - Selenium(7)多窗口切换
WebDriver
提供了switch_to.window()方法,可以实现在不同的窗口之间切换。以百度首页和百度注册页为例,在两个窗口之间的切换。
程序猿杂记
·
2020-08-14 15:16
#
Selenium
selenium
python
多窗口
mac +xcode 下
WebDriver
Agent环境配置
环境配置MacOsXcode(建议更新为最新版本)npmcarthage安装npm和Carthage#安装nodebrewinstallnode#查看npm版本npm-v6.2.0#安装Carthage:brewinstallCarthage#如果只是更新请输入brewupgradecarthage注:如果用brew安装十分的慢,采用国内镜像#长期替换(建议使用此项配置) echo'exportH
weixin_30517001
·
2020-08-14 15:13
python爬虫:爬取京东商品信息
'''初级版'''importtimefromseleniumimport
webdriver
fromselenium.
webdriver
.common.keysimportKeysdriver=
webdriver
.Chrome
p是马甲
·
2020-08-14 15:39
Mac上搭建Selenium+
WebDriver
环境chromedriver
https://www.cnblogs.com/zhangqian0830/p/8426999.htmlhttps://www.cnblogs.com/evablogs/p/7143374.htmlhttps://blog.csdn.net/u011818148/article/details/80589040https://www.jianshu.com/p/e50a49f86070PS:其中借
contentment-周游
·
2020-08-14 15:10
python
pycharm
macOS
python京东商品爬取
fromseleniumimport
webdriver
importtimeimportcsvclassJingdong:def__init__(self):self.url='https://www.jd.com
木子氵
·
2020-08-14 15:45
爬虫
滑块验证码处理
验证码处理滑块验证码处理-微博基于selenum.
webdriver
模块以及鼠标事件ActionChains来登录微博;第一步定位到登录入口的iframe子框架,第二部,定位到用户名和密码输入的节点,输入用户名密码
谦虚点自信点嗷儿
·
2020-08-14 15:35
爬虫
爬虫之登录清空淘宝购物车
本次是使用selenium库模拟浏览器登录并清空购物车关于selenium库的使用可参考:https://cuiqingcai.com/2599.html2.代码如下:fromseleniumimport
webdriver
fromselenium.
webdriver
.common.byimportByfromselenium.
webdriver
.support.uiimportWebDrive
24K菜菜菜鸟
·
2020-08-14 15:57
爬虫
爬虫小案例:使用selenium进行获取简书文章数据并插入数据库
网页分析https://www.jianshu.com/c/b4d0bf551689进行获取这些数据在第一次进来的时候发现他有一个无线下拉的列表要将所有的列表动态加载出来browser=
webdriver
.Chrome
真情流露哦呦
·
2020-08-14 14:15
Python
Selenium
python selenium 爬虫页面滚动条滚动到页面底部
现在上传我自己的代码,供大家相互学习借鉴:fromseleniumimport
webdriver
fromselenium.common.exceptionsimportTimeoutException#
宏飞英翔
·
2020-08-14 14:02
python
爬虫
页面滚动条
selenium
【爬虫】爬取淘宝商品的列表信息
1、按综合importrefromseleniumimport
webdriver
fromselenium.common.exceptionsimportTimeoutExceptionfromselenium.
webdriver
.common.byimportByfromselenium.
webdriver
.support.uiim
sisteryaya
·
2020-08-14 14:59
爬虫
Chrome Capabilities 与 ChromeOptions
该
webdriver
的语言API提供了一些方法,以能力传递给ChromeDriver。确切的机制语言不同,但大多数语言使用下列机制的一种或两种:使用
华岭羊仔
·
2020-08-14 14:17
selenium
selenium操作谷歌浏览器自定义下载文件保存路径
importjava.util.HashMap;importorg.openqa.selenium.By;importorg.openqa.selenium.
WebDriver
;importorg.openqa.selenium.WebElement
梦里有阳光
·
2020-08-14 12:08
Java自动化
appium API 之 TouchAction,TouchActions,MultiAction
fromappium.
webdriver
.common.touch_actionimportTouchActiontap:对元素执行点击操作
honeyRJ
·
2020-08-14 06:27
python
自动化测试
10分钟学会 Cucumber + Watir 自动化测试框架
(一)Cucumber和Watir的关系Cucumber和Watir可以没有任何关系,Cucumber只是一个BDD框架,而Watir只是一个
WebDriver
而已,两者的共同点是均属于Rub
python爱好部落
·
2020-08-14 02:52
Watir
记录:c#中使用Selenium之六 使用火狐和ie浏览器
varcdSvc=InternetExplorerDriverService.CreateDefaultService();cdSvc.HideCommandPromptWindow=true;//关闭cmd窗口I
WebDriver
driver
白衣无暇
·
2020-08-14 02:07
c#
Python Selenium 调用浏览器失败Unexpected error launching Internet Explorer解决方法
fromseleniumimport
webdriver
driver=
webdriver
.Ie()driver.get(url)错误提示:selenium.common.exceptions.
WebDriver
Exception
Test_Box
·
2020-08-14 02:29
Python
Python-selenium:Protected Mode settings are not the same for all zones.
编码环境:gvim7.4运行环境:win7-32(en)powershellPython2.7.11代码:#-*-*coding:utf-8-*-fromseleniumimport
webdriver
fromtimeimportsleep
adustinsky
·
2020-08-14 01:56
Python
WebDriver
常用api
1、driver.get(Stringurl)访问指定url页面该方法会阻塞,只有等该页面上所涉及的请求全部完成后,才能执行后续的操作,这里包括同步和异步请求driver.get("http://www.baidu.com");2、driver.getCurrentUrl()获取当前页面的url地址System.out.println(driver.getCurrentUrl());3、drive
Vicky_zy
·
2020-08-14 01:51
Java
selenium
开源自动化测试框架介绍 2019
RobotFramework使用Selenium
WebDriver
支持Web应用自动化测试,使用Appnium支持Android等移动应用测试。另外也支持数据库测试。拥有众多的API接口支持功能扩展。
时间牧人
·
2020-08-14 01:37
软件测试
敏捷测试
企业敏捷
Selenium自动化测试介绍
Selenium由好几部分组成,我们今天主要说的是它的
WebDriver
部分,这部分需要测试者自己编写脚本代码。一、首先来介绍一下它的Java开发环境的搭建:1、首先安装jdk,详细
ActionWind
·
2020-08-14 01:20
Android手机自动化测试实例详解
手机自动化框架也比较多,针对ios,android两个不同的平台,最后我挑选了appium,它是利用
webdriver
来进行驱动测试的,这个框架我比较熟悉,而且它支持两个平台
weixin_30952535
·
2020-08-14 01:42
selenium 安装与 chromedriver安装,以及无头模式的设置
直接使用pip安装1pipinstallselenium用Chrome浏览器来测试fromseleniumimport
webdriver
browser=
webdriver
.Chrome()browser.get
菜鸟起飞lo
·
2020-08-14 00:55
selenium
python
Python爬虫基础到进阶
web自动化:三大等待
.智能等待,最多愿意等待15秒,如果在15秒之内,任何一个适合元素出现了,那就继续下一行代码超时异常报错TimeoutExceiptionNosuchElementExption显示等待:条件+等待,
WebDriver
Wait
国民老公六哥
·
2020-08-13 22:45
web自动化
web自动化:针对PO模式,对basepage进行二次封装
即对selenium
webdriver
API基本操作的二次封装目的:简化代码,提供框架该有的东西每一个函数-提供了一个功能-公共的功能有了basepage,在PageObjects当中直接调用元素操作,
国民老公六哥
·
2020-08-13 22:45
web自动化
Selenium一口气打开N个网址(简单粗暴,小白菜必会)
fromseleniumimport
webdriver
driver=
webdriver
.Firefox()driver.maximize_window()#各个网址:A=‘https://www.baidu.com
阿起你是不是世界上最乖的喵喵?
·
2020-08-13 22:13
走过的坑
【python爬虫】centos8中使用selenium获取网页的信息为空的解决办法
问题在做python爬虫的时候,需要请求一个缺少证书网站,然后很奇怪,返回的driver.page_source只是一个架子,没有内容,如下解决办法加入以下代码fromselenium.
webdriver
importDesiredCapabilitiescapabilities
青蛙不是吃素的
·
2020-08-13 22:44
配置
selenium模块 使用
webdriver
.Firefox()报错: selenium.common.exceptions.
WebDriver
Exception: Message: ‘geckodr
selenium模块使用
webdriver
.Firefox()报错:selenium.common.exceptions.
WebDriver
Exception:Message:‘geckodriver’
Damocles.
·
2020-08-13 22:06
python
python
selenium
appium+python开发09--框架封装,作用yaml作数据驱动
Search)股票选择:(Selected)登陆操作的封装:Profilepage页面登陆页面目录结构:AndroidClient.py主要实现app的安装的启动功能:fromappiumimport
webdriver
fromappium.
webdriver
.
webdriver
import
WebDriver
classAndroidClient
weixin_39430584
·
2020-08-13 21:29
移动app自动化测试
如何在无头模式下运行
WebDriver
?
如何在无头模式下运行
WebDriver
?如果您的CI工具(例如Jenkins)不支持UI,则可能需要这样做。
weixin_33911824
·
2020-08-13 21:02
阿里云服务器(centos)按装 selenium,
webdriver
,以及使用
安装chrome用root用户在目录/etc/yum.repos.d新建google-chrome.reppocd/ect/yum.repos.d/vimgoogle-chrome.repo在该文件中添加如下内容:1[google-chrome]2name=google-chrome3baseurl=http://dl.google.com/linux/chrome/rpm/stable/$bas
shilaike2
·
2020-08-13 18:20
上一页
96
97
98
99
100
101
102
103
下一页
按字母分类:
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
其他