Forum Discussion
I am not including all the logic I am going to use to randomize which browser.... but just to load the browser window and navigate to the page
WshShell.Run("powershell - file C:\\VSI Script Extensions\\RecTrac\\edge.bat"); Sys.Browser(ProjectSuite.Variables.BrowserUnderTest).ToUrl(Project.Variables.Url);
Of course, it worked once then stopped working. What I am seeing now is that the browser load appears to load which I see with the flicker of the pinned shortcut. But it does not remain loaded. Any thoughts?
Sort of a righteous bummer that the browser object is not exposed to script extensions.
- tristaanogre5 years agoEsteemed Contributor
Possibly the browser is still loaded and running as a hidden process... Windows 10 environments are NOTORIOUS for "suspended" applications. Before running a browser, I usually check to see if it's already running... if it is, kill the process so that, when I start the browser, it starts brand new.
- vthomeschoolmom5 years agoSuper Contributor
Yes. I did that. Alas that is not it.
- tristaanogre5 years agoEsteemed Contributor
Can I go back to square one for a moment?
Why do you want to move the execution of the browser from your code to an extension? The automation code for running browsers, even in a loop, is relatively simple. Help me understand what you're trying to achieve... there may be a better way.
Related Content
- 8 years agoSundaytwins
Recent Discussions
- 3 hours agoSvetaG