robotframework-demo/Project/task3/Resources/Common.robot

18 lines
371 B
Plaintext

*** Settings ***
Library Selenium2Library
Resource Element.robot
*** Keywords ***
点击按钮
[Arguments] ${button}
Set Focus To Element ${button}
Click Element ${button}
sleep 2s
输入文本
[Arguments] ${path} ${Text}
Set Focus To Element ${path}
Input Text ${path} ${Text}
sleep 1s