kalmangt
10 years agoOccasional Contributor
Navigate to url with an ip address and port
I am new to Testcomplete and I am trying to get a script that will navigate to a specific web address on our intranet. The address contains the IP and port so it looks like this: http://192.168.1.1:7001/website/stuff/etc I do not want to have the IP and Port and want to use wildcards for it since it could change. Below is the script I created:
function web_test ()
{
Sys.Process("iexplore").Page("*").NavigateTo("http://*:*/website/stuff/etc");
}
But I keep getting a JScript error, the parameter is incorrect. However it works fine if I replace the *:* with the actual Ip and Port.
Is there anyway to keep the widcards for the IP and Port?????