No output recieved when Jquery is executed
Hello,
I am using TestComplete 14, when I try to execute following script, no output is received.
var url = "abc"
Browsers.Item(btEdge).Run(url);
browser = Sys.Browser();
page = Sys.Browser().ToUrl(url);
browser.BrowserWindow(0).Maximize();
// Browsers.CurrentBrowser.Navigate(url);
// var page = Sys.Browser().Page(url);
page.contentDocument.Script.eval("jq('$attributeValue').val('TestPackage')")
Delay(1000)
var pritn = page.contentDocument.Script.eval("jq('$attributeValue').val()")
Log.Message(pritn)
When I enter page.contentDocument.Script and check for eval, there is no eval available in the method.
I tried the same with TestComplete 15, the result is same.
Let me know what needs to be done so that the script can give the value and output.
I verified the same on developer mode ->console, it gives the desired result.