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+Python获取弹出框内容的提醒
selenium+Python获取弹出框内容的提醒时使用
webdriver
.switch_to_alert().text()方法提示TypeError:'unicode'objectisnotcallable
鲨鱼儿_e0a3
·
2022-02-21 23:38
selenium+Python+pycharm环境搭建
selenium:pipinstallselenium(建议参照第5点,在pycharm导入selenium)安装完成后piplist命令查看已安装列表清单,能看到selenium表示现在成功4、下载浏览器驱动
webdriver
听枫tingfeNG
·
2022-02-21 22:57
selenium实战外贸(中国制造)剪刀
1,先看结果image.png2.思路1.反爬虫机制:user-agent设置2.自动翻页机制3.一键建表入库4.phantomjs无界面抓取3.上代码fromseleniumimport
webdriver
fromselenium.
webdriver
.common.byimportByfromselenium.
webdriver
.support.waitimport
WebDriver
Waitfro
ilililillililil
·
2022-02-21 18:07
python selenium 下载文件_python+selenium下载文件——firefox
fromseleniumimport
webdriver
importtimefp=
webdriver
.FirefoxProfile()fp.set_preference('browser.download.manager.showWhenStarting
weixin_39809793
·
2022-02-20 20:51
python
selenium
下载文件
webdriver
importrequestsimportosimportpymysqlimportuuidimportrefromseleniumimport
webdriver
frombs4importBeautifulSoupdefgetHeaders
FDDDDDDD_
·
2022-02-20 07:50
mac上无头(headless)chrome开启失败
Pythonselenium调用chrome浏览器的无头模式这行代码已经执行opt=
webdriver
.ChromeOptions()opt.add_argument('--headless')但是依旧会打开
sexy_cyber
·
2022-02-20 02:42
App Appium& Browser SeleniumTesting
Appium是一个开源的,适用于原生或混合移动应用(hybridmobileapps)的自动化测试工具,Appium应用
WebDriver
:JSONwireprotocol驱动安卓和iOS移动应用。
燕京教育博士
·
2022-02-19 18:57
Selenium源码分析之chromedriver的设置
python;selenium:3.141.0启动pycharm,并创建名为seleniumHQ的工程,创建一个py文件,输入如下代码:if__name__=='__main__':fromselenium.
webdriver
.chrome.
webdriver
import
WebDriver
path
假程序员
·
2022-02-19 12:38
黑苹果升级13.3.3后,显示卡顿延迟解决办法
的项目最近因为想要使用这个功能,就把家里的黑苹果升级到10.13.3(17D47),发现升级以后鼠标的移动和窗口变换有很大延迟解决办法最新更新:更新系统到10.13.4(17E199),并将NVIDIA
WebDriver
這Er
·
2022-02-19 11:34
如何使用selenium-grid进行多任务测试/分布式爬虫
1.修改本地文件$/usr/local/lib/python2.7/site-packages/selenium/
webdriver
/remote/
webdriver
.py183行old:parameters
弹杯一笑
·
2022-02-19 08:56
python使用selenium无界面浏览器
#coding=utf-8importseleniumimportselenium.
webdriver
importtimepath=r"D:\ProgramFiles\phantomjs-2.1.1-windows
我心有猛虎2018
·
2022-02-18 19:30
抓取51job
39&p=7主要代码如下#encoding:utf-8#随便找一个就可以,因为现在这个67就是我搜索的python,但是格式真的没变importselenium#测试框架importselennium.
webdriver
去角落里种蘑菇
·
2022-02-18 14:55
Selenium
WebDriver
鼠标事件
一、鼠标左键点击Actionsaction=newActions(driver);1、action.click();//鼠标左键在当前停留的位置做单击操作2、action.click(driver.findElement(By.name(element)));//鼠标左键点击指定的元素二、鼠标右键点击Actionsaction=newActions(driver);1、action.context
majianping
·
2022-02-18 09:41
selenium自动化测试基础
自动化测试工具Selenium基本介绍Selenium工具集自动化编程语言Python选择JetBrainsPyCharm使用Selenium的环境搭建1.3Selenium的最简脚本1.4Selenium
WebDriver
API
思考的山羊
·
2022-02-18 03:15
收藏链接
windows下安装Redis并部署成服务2.请求头转换为字典3.python-爬虫自动生成请求头/User-Agent方法4.
WebDriver
获取cookie后处理成Request.post中header
Kan_shan
·
2022-02-18 03:51
一文讲透!实现一个Python+Selenium的自动化测试框架如此简单!
Selenium主要包括三部分:SeleniumIDE、Selenium
WebDriver
和SeleniumGrid。
程序员阿沐
·
2022-02-18 02:02
2019-01-21Selenium
Selenium视频地址:链接:https://pan.baidu.com/s/1RJETygOxiT1t2cSjFK_8cA密码:49ja基本使用fromseleniumimport
webdriver
fromselenium.
webdriver
.common.byimportByfromselenium.
webdriver
.common.keysimportKeysfromselenium.we
小草_f57c
·
2022-02-18 02:20
基于Python+Selenium+Chrome headless 模式入门
写一写入门的心得.分享一下,不足之处未来逐步完善.2.环境准备Python3.6.5注:这个附带的工具IDLE(Python3.664-bit)调试很方便.按F5就行了Selenium2.0注:需要带
WebDriver
Chrome59
萧风_c200
·
2022-02-17 23:00
(2018-05-19.Python从Zero到One)3、(爬虫)动态HTML处理和机器图像识别__1.3.4案例二:动态页面模拟点击
/usr/bin/envpython#-*-coding:utf-8-*-#python的测试模块importunittestfromseleniumimport
webdriver
frombs4importBeautifulSoupclassdouyuSelenium
lyh165
·
2022-02-17 11:06
python3 selenium自动登录csdn
使用selenium自动化登录csdn代码:importseleniumfromseleniumimport
webdriver
fromselenium.
webdriver
.commonimportkeysimporttimedriver
我心有猛虎2018
·
2022-02-16 21:41
chrome driver基本使用与常见设置
1.调用chromedriverSystem.setProperty("
webdriver
.chrome.driver","C:/ProgramFiles(x86)/Google/Chrome/Application
执笔coding
·
2022-02-16 11:47
Selenium学习006-查询12306列车
Selenium学习笔记目录查询有票的列车,并输出列车车次要求南京南-杭州东当前时间的第二天0600-1200二等座fromseleniumimport
webdriver
fromselenium.
webdriver
.common.keysimportKeystry
残阳夕露
·
2022-02-16 03:18
Selenium学习007-使用技巧
Selenium学习笔记目录
webdriver
对象的一些方法获取某个元素的属性值#获取选定元素对应的链接ele.get_attribute("href")获取当前窗口的titledriver.get('
残阳夕露
·
2022-02-16 01:42
[selenium]访问页面
fromseleniumimport
webdriver
webObject=
webdriver
.Chrome()#首先创建浏览器的对象webObject.get('http://www.baidu.com
Franckisses
·
2022-02-15 20:07
Selenium自动化测试框架基础学习(元素表单操作)(Selenium安装操作)(自动化web案例)
1.3Selenium-
webdriver
工作原理1.4selenium环境搭建(详情查阅讲义)1.5什么是Selenium-IDE?
嘤嘤嘤999
·
2022-02-15 16:24
appium中常见的几种点击方式
目录1、最常见的点击方式click()方法2、手指轻敲屏幕操作tap()方法3、手指按下操作press()方法4、模拟手指长按操作long_press()方法首先从appium库里面导入
webdriver
·
2022-02-15 14:41
(转)Selenium无法定位元素的九种解决方案
https://www.jianshu.com/p/83087c24ab19一、frame/iframe表单嵌套
WebDriver
只能在一个页面上对元素识别与定位,对于frame/iframe表单内嵌的页面元素无法直接定位
ying_728
·
2022-02-15 12:32
python使用selenium打开chrome浏览器时带用户登录信息实现过程详解
当我们想要爬取某个网站信息或者做某些操作的时候就需要自己再去模拟登陆selenium操作浏览器这里我们就以CSDN为例,来展示如何让selenium在打开chrome浏览器的时候带上用户的登录信息打开chrome浏览器fromseleniumimport
webdriver
·
2022-02-15 12:48
move_to_element 下拉菜单出不来。
fromseleniumimport
webdriver
importtimeimportActionChainsfromselenium.
webdriver
.common.action_chainsimportActionChainsdriver
爱吃葡萄冰的鲸
·
2022-02-15 10:07
selenium三种等待方式详解
在自动化测试脚本的运行过程中,
webdriver
操作浏览器的时候,对于元素的定位是有一定的超时时间,大致在1-3秒如果这个时间内仍然定位不到元素,就会抛出异常,中止脚本执行我们可以通过在脚本中设置等待的方式来避免由于网络延迟或浏览器卡顿导致的偶然失败常用的三种等待方式强制等待隐式等待显示等待强制等待利用
软件测试狂阿沐
·
2022-02-15 08:27
程序员
测试开发
软件测试
软件测试
等待方式
selenium
显示等待
自动化测试
python 显示等待_python+selenium显示等待、隐式等待和强制等待的区别
appium时,等待下个等待定位的元素出现,特别是web端加载的过程,都需要用到等待,而等待方式的设置是保证脚本稳定有效运行的一个非常重要的手段,在selenium中(appium通用)常用的等待分为:显示等待
WebDriver
Wait
weixin_39719989
·
2022-02-15 08:27
python
显示等待
selenium 隐式等待如何使用_selenium显示等待和隐式等待
1.显示等待每隔一段时间检测一次当前页面元素是否存在,如果超过设置时间检测不到则抛出异常(TimeoutException)操作格式:
WebDriver
Wait(driver,timeout,poll_frequency
weixin_39543835
·
2022-02-15 08:56
selenium
隐式等待如何使用
强制等待、显示等待和隐式等待
显示等待
WebDriver
Wait()比如:driver=
webdriver
.Chrome()driver.get(‘http://www.baidu.com’)element=
WebDriver
Wait
andyyoung2001
·
2022-02-15 08:56
显示等待
隐式等待
selenium的
webdriver
三种等待方式 (显式等待、隐式等待 、sleep 强制等待)
fromseleniumimport
webdriver
fromselenium.
webdriver
.support.waitimport
WebDriver
WaitdefpageInteraction()
疯子vs年华
·
2022-02-15 08:54
selenium
python
selenium
显示等待
隐示等待
python3+selenium实现Web自动化9:basePage.py、loginPage.py
basePage.py代码参考:#_*_coding:utf-8_*_importtime,osfromselenium.
webdriver
.support.uiimpor
C1R2
·
2022-02-14 17:05
Python+Selenium+
WebDriver
API接口常用方法
一、浏览器相关1.控制浏览器窗口大小driver.set_window_size(self,width,height,windowHandle='current')#Setsthewidthandheightofthecurrentwindow.(window.resizeTo)#width:thewidthinpixelstosetthewindowto#height:theheightinpi
gz_tester
·
2022-02-14 12:07
java版selenium_Selenium3.0-Java版(共61节)
Selenium概述自Selenium1.0以来,Selenium项目一直在不断改进,每一次改变都是一次飞跃性的进步,从Selenium1.0到2.0,这期间Selenium发生了重大的变化,那就是集成了
WebDriver
weixin_39886205
·
2022-02-14 09:28
java版selenium
Selenium
WebDriver
(一)
Selenium
Webdriver
(也就是Selenium2,Selenium3)和SeleniumRC(Selenium1)一样提供了web自动化的各种语言调用接口库。
风神修罗使
·
2022-02-14 09:53
Webdriver
(selenium2)基于Python脚本实现登录填写日志(分步讲解)
webdriver
的API为我们做web自动化测试提供了强大支持,以下是本人完成该环境下的第一个脚本,时间用了蛮久,过程中在书本和网上查了很多信息,但是都没有根据脚本比对前端页面代码的讲解,于是详细记录了自己遇到的坑和解决办法
Jorah_Bronn
·
2022-02-14 09:53
python
脚本
selenium
自动化测试
python selenium-
webdriver
登录验证码的处理
很多系统为了防止坏人,会增加各样形式的验证码,做测试最头痛的莫过于验证码的处理,验证码的处理一般分为三种方法1.开发给我们设置一个万能的验证码;2.开发将验证码给屏蔽掉;3.自己识别图片的上的千奇百怪的图片,但是这样的方法识别成功率不是特别的高,而且也不是对所有的都可以识别,只是识别一些简单的验证码;4.可以调用其他的服务商的验证码识别的接口,我从阿里云的云市场找到一家验证码识别的接口,0.9元可
月如勾_9667
·
2022-02-14 08:38
python3+selenium实现Web自动化5:文件上传,Cookie操作,调用 JavaScript,窗口截图
/usr/bin/envpython#-*-encoding:utf-8-*-fromseleniumimport
webdriver
importosdriver=
webdriver
.Chrome('..
C1R2
·
2022-02-14 07:24
python3 selenium自动化测试 发送QQ邮箱的脚本2018-08-13
欢迎加入我群,沟通交流学习以下是代码:fromseleniumimport
webdriver
#导入
webdriver
包fromtimeimportsleep#导入sleep包fromselenium.
webdriver
.supportimportexpected_conditionsa
Jamesxie36
·
2022-02-13 21:04
selenium
firefoxheadlessffoxOptions=
webdriver
.FirefoxOptions()ffoxOptions.set_headless()br=
webdriver
.Firefox(firefox_options
金刚_30bf
·
2022-02-13 18:05
python自动化测试工具有哪些?
图片发自AppWebUItestautomationWebUI自动化libraries各种库selenium
webdriver
-浏览器自动化工具splinter-简单的web自动化工具,让元素定位,表单提交等更加容易
大白python
·
2022-02-13 14:23
自动化测试——selenium之163邮箱登录
#从selenium导入
webdriver
fromseleniumimport
webdriver
importtimedriver=
webdriver
.Chrome()driver.get("https:
顶宝麻麻
·
2022-02-12 20:06
appium+python自动化测试(2)
.png创建编辑自动化测试脚本文件ios_test.py,放入创建的项目目录下面(工程.png)脚本内容//python脚本语言要注意每行缩进,这是python语法特性fromappiumimport
webdriver
importtimeprint
JinHuiZhang
·
2022-02-12 11:58
python+selenium基于po模式的web自动化测试框架
Selenium主要包括三部分:SeleniumIDE、Selenium
WebDriver
和SeleniumGrid。
蜀山客e
·
2022-02-12 02:31
手机浏览器自动化及桌面浏览器模拟手机自动化
#coding=utf8fromappiumimport
webdriver
importtimefromselenium.
webdriver
.supportimportexpected_conditionsasECfromselenium.webd
自如_
·
2022-02-11 21:28
python网络爬虫selenium打开多窗口与切换页面的实现
首先打开百度fromseleniumimport
webdriver
importtimedriver=
webdriver
.Chrome()driver.get('https://www.baidu.com
·
2022-02-11 18:02
web自动化的小技巧
中输入以下命令定住界面:setTimeout(function(){debugger;},5000)三、driver.implicitly_wait()这个等待只是针对find系列的,周期性查找,每半秒查询一次四、
webDriver
雪晴魅影
·
2022-02-11 15:28
上一页
60
61
62
63
64
65
66
67
下一页
按字母分类:
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
其他