Forum Discussion
you can use .ToUrl or .Navigate when yout browser is already running.
for this reason you should check first if your browser is running,
Sub invokeURL
If Sys.WaitProcess("iexplore",2000).Exists then
Browsers.Item("iexplore").Navigate("www.google.com")
Else
Browsers.Item("iexplore").Run("www.google.es")
End If
End Sub
Anyway, I recomend you to put your baseURL and browser in a Project.Variables and use them if you wants to change the browser or the environment.
Project.Variables.Browser
Project.Variables.baseURL
kind regards
- suzanne_raine11 years agoContributor
Hi,
Thanks for your response! I've tried that code, but it's the same errors again.
It also should recognise that my browser is running because it's just a follow on from some code that I know already works.
- Lage11 years agoContributor
Could you please check the properties of your Browser stored in the NameMapping?
Try also to highlight the browser on Screen.
Maybe you have there some properties that don't help with the browser recognition.
Hope it helps. waiting.
regards,
Lage
- suzanne_raine11 years agoContributor
It's not finding the object on screen:
"Cannot highlight this object on screen."
Here's the mapped object: