我需要从ranorex运行网页的javascript函数。因此,我给出了Add New Action ->用户代码,并用Recording1.UserCode.cs编写了以下代码
public void greet()
{
WebDocument webDocument = "/doc";
webDocument.ExecuteScript("document.write('Hello World!');");
}当我播放录音时,我在报告中得到了以下错误:
“在10秒内找不到路径'/doc‘的元素。”
遗漏了什么?或者什么才是正确的方法呢?
发布于 2013-03-15 23:26:22
你的问题已经在下面的帖子中得到了回答。http://www.ranorex.com/forum/ranorex-javascript-executescript-t4436.html
https://stackoverflow.com/questions/15245515
复制相似问题