Name:
Set Focus To Element
Source:
设置焦点到指定的节点对象,一般为输入框
Arguments:
[ locator ]
Locator:xpath,为要获取焦点的节点的xpath
案例:设置焦点到输入密码框
RIDE的脚本:
open browser https://mail.qq.com/ chrome
sleep 2
select frame xpath=//iframe[@id=“login_frame”]
Set Focus To Element xpath=//div[@id=“pwdArea”]/div/input
sleep 5