问题一
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
#获取标签的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
应用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
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
安装eclipse 安装java jre 设置java环境变量 打开Eclipse,新建一个java project。 创建成功后到project properties->Java Build Path->Libraries->Add Library->JUnit...
分类:
其他好文 时间:
2015-05-04 18:23:35
阅读次数:
112
在写文件上传脚本的时候,遇到了很多问题,包括元素定位,以及上传操作,现在总结下来以下几点:1. 上传的控件定位要准确,必要时要进行等待WebElement adFileUpload = driver.findElement(By.xpath("//input[@type='file']"));2. ...
分类:
编程语言 时间:
2015-05-04 15:06:34
阅读次数:
193
CssSelector是我最喜欢的元素定位方法,Selenium官网的Document里极力推荐使用CSS locator,而不是XPath来定位元素,原因是CSS locator比XPath locator速度快,特别是在IE下面(IE没有自己的XPath 解析器(Parser))他比xpath更...
分类:
Web程序 时间:
2015-05-04 11:50:38
阅读次数:
364
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
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
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