摘要:
Robot Framework 框架是基于 Python 语言开发的,所以,它本质上是 Python 的一个库。 运行结果: 阅读全文
摘要:
将重复性动作进行封装为keyword,在测试用例中调用keyword。 运行结果: 阅读全文
摘要:
1. 打开浏览器 Open Browser htpp://www.testclass.net chrome 2. 关闭浏览器 Close Browsers Close All Browser 3. 浏览器最大化 Maximize Browser Window 4. 设置浏览器窗口宽、高 Set Wi 阅读全文
摘要:
*** Settings ***Library Selenium2Library *** Test Cases ***Open baidu with Chrome Open Browser http://www.baidu.com Chrome Input text id=kw selenium C 阅读全文
摘要:
1. Set Variable 定义:Returns the given values which can then be assigned to a variables. 示例1: ${a} Set Variable 50 示例2: 2. Create List 定义:Returns a list 阅读全文
摘要:
1. Variables |- Set variable |- Create list |- Evaluate |- Get Variable Value 2. Conditional |- Run Keyword If |- Run Keyword And Continue On Failure 阅读全文
摘要:
注意robot的case格式 查看运行结果: 阅读全文
摘要:
http://robotframework.org/ 阅读全文
摘要:
一、配置python 环境 1. 设置pydev库 打开Help -> Install New Software, 点击'Add',设置Name为“Pydev”,Location为“http://pydev.org/updates”。 2. 安装 在此界面点击select ALL,点击next,之后 阅读全文
摘要:
1. pip list 2. pip show selenium 3. cmd>>python >>> import selenium>>> help(selenium) 阅读全文
摘要:
环境:Python2.7+selenium3+Firefox47 问题1: 在打开火狐浏览器时报错:‘geckodriver‘ executable needs to be in PATH from selenium import webdriver 解决: 1.查看C:\Python27\Lib\ 阅读全文