|
脚本:
Setting.WebPackage("ReplayType") = 2
Setting.WebPackage("ReplayType") = 2
Set browsDesc = description.create()
Set pageDesc = description.create()
Set lnkDesc = Description.create()
lnkDesc("text").value = " 关闭所有窗口"
lnkDesc("index").value=1
Set elm=Description.Create()
elm("innertext").value="关闭所有窗口"
wait(1)
Browser(browsDesc).Page(pageDesc).Link(lnkDesc).WebElement(elm).FireEvent "onclick", , ,micRightBtn
Browser(browsDesc).Page(pageDesc).Link(lnkDesc).WebElement(elm).FireEvent "onclick", , ,micLeftBtn
wait(1)
如果我先在web页面操作了鼠标右键,再回放脚本,回放成功
关闭web,再重新打开,回放脚本,不能看到鼠标轨迹
为什么? |
|