码迷,mamicode.com
首页 >  
搜索关键字:Selenium css定位    ( 6592个结果
使用java语言通过appium工具测试ios应用一些问题总结
问题一 1.3.7版本好像有一个bug,就是需要修这个文件 进入到apium的安装目录下 修改 node_modules/appium/node_modules/node-idevice文件。替换掉的文件下载地址是,否则就出现下面这个错误了。这个bug不知道什么时候修复。。 org.openqa.selenium.SessionNotCreatedException: A new sessio...
分类:移动开发   时间:2015-05-08 20:25:44    阅读次数:598
selenium-webdriver 中执行js代码
#获取标签的text文本值js1="return document.getElementById('key1').innerText"dr.execute_script(js1)#获取标签的html文本js2="return document.getElementById('key2').inner...
分类:Web程序   时间:2015-05-07 18:30:29    阅读次数:141
python + selenium <二>
应用Webdriver,实现自动化 1 #coding:gbk 2 from selenium import webdriver 3 import os 4 5 from selenium.webdriver.support.ui import Select 6 base_url ="https:....
分类:编程语言   时间:2015-05-06 19:30:07    阅读次数:176
windows下搭建python+selenium环境
1、安装pythonhttps://www.python.org/2、安装setuptools(python的基础包工具)下载地址:https://pypi.python.org/pypi/setuptools下载ez_setup.py文件打开cmd,进入到存放ez_setup.py文件的目录,执行...
分类:编程语言   时间:2015-05-04 19:57:21    阅读次数:124
selenium系列->脚本开发环境的搭建->JUnit
安装eclipse 安装java jre 设置java环境变量 打开Eclipse,新建一个java project。 创建成功后到project properties->Java Build Path->Libraries->Add Library->JUnit...
分类:其他好文   时间:2015-05-04 18:23:35    阅读次数:112
Selenium的文件上传JAVA脚本
在写文件上传脚本的时候,遇到了很多问题,包括元素定位,以及上传操作,现在总结下来以下几点:1. 上传的控件定位要准确,必要时要进行等待WebElement adFileUpload = driver.findElement(By.xpath("//input[@type='file']"));2. ...
分类:编程语言   时间:2015-05-04 15:06:34    阅读次数:193
【Selenium专题】元素定位之CssSelector
CssSelector是我最喜欢的元素定位方法,Selenium官网的Document里极力推荐使用CSS locator,而不是XPath来定位元素,原因是CSS locator比XPath locator速度快,特别是在IE下面(IE没有自己的XPath 解析器(Parser))他比xpath更...
分类:Web程序   时间:2015-05-04 11:50:38    阅读次数:364
use selenium in scrapy webdriver
https://pypi.python.org/pypi/seleniumfrom selenium import webdriverfrom selenium.webdriver.common.keys import Keysbrowser = webdriver.Firefox()browser...
分类:Web程序   时间:2015-05-03 20:17:20    阅读次数:1190
Selenium-Waits
These days most of the web apps are using AJAX techniques. When a page is loaded to browser, the elements within that page may load at different time ...
分类:其他好文   时间:2015-05-03 11:56:12    阅读次数:143
selenium-Locating Elements
There are vaious strategies to locate elements in a page. You can use the most appropriate one for your case. Selenium provides the following methods ...
分类:其他好文   时间:2015-05-03 11:55:26    阅读次数:137
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!