随笔分类 -  RobotFramework

摘要:Open Google Simulator1 ${device metrics}= Create Dictionary width=${360} height=${640} pixelRatio=${3.0} userAgent=Mozilla/5.0 (Linux; Android 4.2.1; 阅读全文
posted @ 2019-12-24 16:30 燕十三丶 阅读(623) 评论(0) 推荐(0)
摘要:Click_Element Xpath=//b[text()='系统投放管理'] Sleep 1 Click_Element Xpath=//span[text()='全部投放情况查询'] Sleep 1 #如果"全部投放情况查询"页签未能打开,则循环重新点击"全部投放情况查询"菜单 : FOR $ 阅读全文
posted @ 2019-12-11 13:56 燕十三丶 阅读(338) 评论(0) 推荐(0)
摘要:*** Settings ***Library Selenium2Library *** Keywords ***Checkbox应该不被选择 [Arguments] ${locator} Checkbox Should Not Be Selected ${locator} Frame应该包含文本 阅读全文
posted @ 2019-12-10 09:23 燕十三丶 阅读(631) 评论(0) 推荐(0)
摘要:Wait and Click Element [Documentation] 等待元素出现并单击元素 [Arguments] ${locator} Wait Until Element Is Visible ${locator} 10s # Sleep 0.5s Click Element ${lo 阅读全文
posted @ 2019-12-09 10:05 燕十三丶 阅读(188) 评论(0) 推荐(0)
摘要:常用关键字* Settings * Library Selenium2Library1* Keywords * 打开浏览器 [Arguments] ${url} ${browser} [Documentation] 打开浏览器 open browser ${url} ${browser}123最大化 阅读全文
posted @ 2019-12-04 11:01 燕十三丶 阅读(676) 评论(0) 推荐(1)
摘要:Move Over and Click Link [Documentation] 等待悬浮菜单中的元素出现并单击元素 [Arguments] ${hover_locator} ${opt_locator} Sleep 1s Wait Until Element Is Visible ${hover_ 阅读全文
posted @ 2019-12-03 15:19 燕十三丶 阅读(217) 评论(0) 推荐(0)
摘要:Wait and Click Element [Documentation] 等待元素出现并单击元素 [Arguments] ${locator} Wait Until Element Is Visible ${locator} 10s # Sleep 0.5s Click Element ${lo 阅读全文
posted @ 2019-12-03 14:27 燕十三丶 阅读(411) 评论(0) 推荐(0)
摘要:# Execute Javascript document.getElementsByClassName('chooseFile')[${index}].arguments[0].click(); # Click Element xpath=//*[@id="filePicker"]/div[1]/ 阅读全文
posted @ 2019-12-02 14:33 燕十三丶 阅读(363) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-11-22 16:36 燕十三丶 阅读(88) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-11-22 11:24 燕十三丶 阅读(92) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-11-22 11:19 燕十三丶 阅读(640) 评论(0) 推荐(0)
摘要:1、首先导入 Selenium(webdriver)相关模块2、调用 Selenium 的浏览器驱动,获取浏览器句柄(driver)并启动浏览器。3、通过句柄访问百度 URL。4、通过句柄操作页面元素(百度输入框和“百度一下”按钮)。5、通过句柄关闭浏览器。 阅读全文
posted @ 2019-11-19 15:15 燕十三丶 阅读(171) 评论(0) 推荐(0)

AmazingCounters.com