Forum Discussion
roselleberdin
15 years agoNew Contributor
Hope you can also help me out with the same dilemma.
This piece of code I got from the help topic is not working in IE8, but it is in Firefox 3.6.22. This is a JScript code:
var page, WebControlsURL;
WebControlsURL = "http://192.168.100.53:8080/";
browser.ToUrl(WebControlsURL);
page=browser.WaitPage(WebControlsURL,3000);
if (!page.Exists)
{
Log.Error("Unable to open the tested page.");
return;
}
var tempObj, obj;
tempObj = page.EvaluateXPath("//a[@href='/geneos-web-app']");
if(VarType(tempObj) != varNull)
{
obj = new VBArray(tempObj).toArray();
obj[0].Click();
}
else
{
Log.Message("The element was not found");
}
page.Wait();
-------------