
RobotFramework
文章平均质量分 91
Wind_365
这个作者很懒,什么都没留下…
展开
-
RFS-在RIDE中随机生成字符串
在PyDev中写好的生成字符串的关键字发现没有办法在RIDE中使用,因为方法需要一个num参数,且方法的返回值要赋给一个变量,在RIDE中没法组合关键字。def generate_letters(self,num): '''生成固定长度的由大小写字母和数字组成的字符串 ''' letters="".join(random.sample(strin原创 2013-12-09 16:10:56 · 5149 阅读 · 0 评论 -
WebDriver(Selenium2) 常见异常及处理方法
Exception NoSuchElementException Solutions 1. Check the locator of your target element. 2. If the locator is current. Try to wait for page load before find element. 3. If already wait for l转载 2014-01-15 09:29:50 · 46272 阅读 · 0 评论 -
使用Xpath对XML进行模糊查询
使用Xpath对XML进行模糊查询 如果要对XML文件进行模糊查找的话是一个比较麻烦的事情,Xpath表达式中没有像文件系统中的“*”或"?" 或者有像SQL表达式中的"%",这样的模糊查找的通配符。但是还好,在Xpath的函数中提供了像contains和match这样的函数。contains是一个字符串查找函数 语法是:fn:contains(string1,string转载 2014-03-29 14:24:49 · 884 阅读 · 0 评论 -
Selenium2Library源码解读(1)- _logging模块
概述_logging模块用于Selenium2Library库本身输出打印信息。模块没有定义公共方法,全部为私有方法,共7个私有方法。解读_logging模块的源码还是比较简单的,其定义的写日志方法都是对robot框架中的相关方法的封装原创 2015-12-03 16:29:32 · 1327 阅读 · 0 评论 -
Selenium2Library源码解读(1)- 概述
概述官方文档这样描述Selenium2Library:Selenium2Library is a web testing library for Robot Framework.It uses the Selenium 2 (WebDriver) libraries internally to control a web browser.See http://seleniumhq.o原创 2015-12-01 16:51:32 · 3325 阅读 · 0 评论