Forum Discussion
- LageContributor
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_raineContributor
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.
- LageContributor
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
Hi Suzanne_raine,
Is the IE browser launched before you start executing your code?
If it’s not launched, you can use the following code:
Browsers.Item(btIExplorer).Run("http://smartbear.com");
- suzanne_raineContributor
Hi,
Yes I also tried that. It opens the browser - i.e. it runs that bit of code fine, but then won't get past the second line.
- LageContributor
Can you highlight the page that you want to open?
note: About one of my previous post...it is usuall that the Browser can not be highlighted. No worry about that. Just try to highlight the inmediate object below (should be a page).
Can you modify your Maped Objects properties like this ones below? then, open www.google.com and try to highlight. Important! Note the '*' stars in the URL. (better with iexplore)
tell us something