Forum Discussion
The Browsers object is not accessible within an extension so you can't do exactly the same thing.
What you will have to do is write code to use the WshShell object and the Run method to run the desired browser executable.
Hrrrrrm. Can't find an edge executable. But I shall seek on. Thanks.
- TanyaYatskovska5 years agoSmartBear Alumni (Retired)
vthomeschoolmom, please share with us the code you'll create with the WScript.Shell object.
- vthomeschoolmom5 years agoSuper Contributor
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);
- vthomeschoolmom5 years agoSuper Contributor
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.
Related Content
- 8 years agoSundaytwins
Recent Discussions
- 2 hours agoSvetaG