使用seleniumIDE,根据需要添加其他javascript。
如果按钮存在,我只想转到网址。
按钮显示“继续”,网址为/ reports / start
我试过了:
store //a[text()='start']/@href startButtonURL
store javascript{if (startButton != null) {location.href=${startButtonURL}}} ignore_me_var
但是seleniumIDE窗口本身被关闭了,我无法获得该窗口的位置是其他测试套件正在使用的selenium窗口。我尝试过的所有东西都以一个新窗口结束。