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

 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号