摘要: 官方文档:http://2.python-requests.org/zh_CN/latest/user/quickstart.html#url pip install requests #安装requests库 开始要导入 Requests 模块: import requests #然后,尝试获取某 阅读全文
posted @ 2020-02-20 23:56 小白龙白龙马 阅读(572) 评论(0) 推荐(0)
摘要: select frame关键字: 接收一个参数locator,进行定位 open browser http://www.baidu.com chrome select frame id=fra ${list} get list items id=buy unselect frame //返回到最上层 阅读全文
posted @ 2020-02-20 19:26 小白龙白龙马 阅读(659) 评论(0) 推荐(0)
摘要: set screenshot directory关键字:设置快照保存目录。 接收[ path | persist=false ]两个参数,可以和capture page screenshot配合使用 set screenshot directory d:\\ capture page screens 阅读全文
posted @ 2020-02-20 16:09 小白龙白龙马 阅读(907) 评论(1) 推荐(0)
摘要: list windows关键字:获取当前打开的所有页面窗口 不需要接收任何参数,返回一个列表 open browser http://www.baidu.com chrome ${result} list windows log ${result} sleep 2 close browser sel 阅读全文
posted @ 2020-02-20 01:44 小白龙白龙马 阅读(958) 评论(0) 推荐(0)
摘要: mouse down关键字:模拟按下鼠标的左键操作 该关键字接收一个参数[locator],可以通过id、name、xpath等进行定位 mouse down id=kw mouse up关键字:用来释放按下的鼠标左键 该关键字接收一个参数[locator],可以通过id、name、xpath等进行 阅读全文
posted @ 2020-02-20 01:29 小白龙白龙马 阅读(2012) 评论(0) 推荐(0)