码迷,mamicode.com
首页 >  
搜索关键字:Selenium    ( 6249个结果
appium+真机测试打开应用apk,报:selenium.common.exceptions.SessionNotCreatedException: Message: A new session could not be created. (Original error: Permission to start activity denied.)
连接真机安卓版本10,总是报错:selenium.common.exceptions.SessionNotCreatedException: Message: A new session could not be created. (Original error: Permission to sta ...
分类:移动开发   时间:2020-06-15 11:53:40    阅读次数:83
python爬虫使用requests请求无法获取网页元素时终极解决方案
爬取数据时,有时候会出现无法通过正常的requests请求获取网页内容,导致数据无法抓取到,遇到这种情况时,可以换种思路去爬取数据,使用PhantomJS,即爬虫终极解决方案去获取页面元素。 #!/usr/local/bin/python3.7 from selenium import webdri ...
分类:编程语言   时间:2020-06-14 20:53:53    阅读次数:155
Selenium多浏览器处理 (Chrome/Firefox/IE)
测试用例文件:test_selenium/test_hogwarts.py 使用pytest框架 定义一个变量,通过外部传入变量,确定使用哪个浏览器 browser = os.getenv("browser").lower() print(browser) if browser == "headle ...
分类:其他好文   时间:2020-06-14 18:49:19    阅读次数:66
selenium中如何执行JS方法
可以利用selenium的 browser.execute_script('JS方法')来实现。举例如下: 想点击网页的登录按钮时,发现由于网页没有最大化导致元素隐藏定位失败,这里不用maximize_window(),我们用执行JS的方法来实现下。 由于网页没有被最大化,元素被隐藏: 具体执行步骤 ...
分类:Web程序   时间:2020-06-14 18:49:05    阅读次数:111
cannot connect to chrome at 127.0.0.1:9222
window10系统,先cmd打开chrome, chrome --remote-debugging-port=9222 执行脚本 from selenium import webdriver from selenium.webdriver.chrome.options import Options ...
分类:其他好文   时间:2020-06-14 16:32:39    阅读次数:221
【Android】使用Appium+python控制真机,碰到的问题以及处理(持续更新)
问题: selenium.common.exceptions.WebDriverException: Message: A new session could not be created. (Original error: Command failed: C:\Windows\system32\c ...
分类:移动开发   时间:2020-06-14 12:29:10    阅读次数:103
安装和测试selenium
1.Selenium安装pip install selenium 2.验证安装 3.ChromeDriver安装 下载链接http://npm.taobao.org/mirrors/chromedriver/ChromeDriver和Chrome版本对应关系参考链接查看自带Chrome浏览器版本4. ...
分类:其他好文   时间:2020-06-14 11:15:32    阅读次数:82
APP自动化(java和python)——java操作百度浏览器
package jkcs; import java.net.MalformedURLException; import java.net.URL; import java.util.concurrent.TimeUnit; import org.openqa.selenium.remote.Desi ...
分类:移动开发   时间:2020-06-13 21:23:50    阅读次数:86
XSS BOT编写
ctf中xss题目常常需要一个管理员小机器点击用户点击的url 之前没有接触过,刚好最近又有这个需要,所以这次尝试写写小机器人的写法 环境准备 首先需要selenium这个python的库 pip install selenium==2.48.0 它的作用是用来webdriver接口的,简而言之是用 ...
分类:其他好文   时间:2020-06-13 19:16:05    阅读次数:58
APP——java——自动化环境搭建01——个人详细搭建——真机模拟
前提摘要——个人已经安装好java 导入java包 (1)、java-client-1.2.1.jar 包 (2)、selenium-2.44.0下面的包: 怎么导入呢?——如下: 第一步骤:按装JDK1.8 系统默认安装路径如下:C:\Program Files\Java\jdk1.8.0_101 ...
分类:移动开发   时间:2020-06-13 14:31:06    阅读次数:79
6249条   上一页 1 ... 34 35 36 37 38 ... 625 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!