javascript错误:在机器人框架中的参数后缺少)

时间:2020-06-17 16:44:49

标签: javascript testing scroll robotframework

Execute JavaScript       document.evaluate('(//span[text()='Create'])[2]',document.body,null,9,null).singleNodeValue.click();

我什么都没丢失,但仍然出现错误。就我而言,向下滚动操作不起作用。我试图直接使用Java脚本单击而不滚动,但仍然收到此错误。

对于向下滚动,我使用了此脚本[Arguments] ${location} #Execute Javascript window.document.evaluate(${location}, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.scrollIntoView(true);

0 个答案:

没有答案