当sendKeys在New Relic Synthetics脚本浏览器中不起作用时,如何使用setValue实现在主题行中键入单词?

时间:2019-04-25 17:50:42

标签: javascript selenium selenium-webdriver newrelic codemirror

ContextNotFoundError: Cannot find context with specified id 

是我在使用$时看到的错误

browser.actions.setValue("//*[@id='subjectLine']","James");
browser.executeScript("arguments[0].CodeMirror.setValue('" + p_subjectText + "');", codeMirror); 

对此进行了尝试,但由于我认为未定义codemirror而无法使用。.这也是javascript,它对新文物没有帮助

我希望使用setValue甚至这里使用的https://codemirror.net/doc/manual.html#api

将James发送到主题行

0 个答案:

没有答案