Forum Discussion
tristaanogre
15 years agoEsteemed Contributor
Probably an easier way to do it rather than using Eval or complicated "if/then" logic, is for you to edit the NameMapping node for your browser process and set the browser name from a Constant/String to a Variable (see screenshot)
I would then rename your browser name mapping node and the corresponding Alias node from the specific "firefox" and "iexplore" to simply "WebBrowser".
Any calls then to your browser would simply be
You can do the same for other name mapping nodes, components, and their properties. See http://smartbear.com/support/viewarticle/12445/ for more info.
I would then rename your browser name mapping node and the corresponding Alias node from the specific "firefox" and "iexplore" to simply "WebBrowser".
Any calls then to your browser would simply be
Project.Variables.envBrowser = "iexplore"
while Aliases.WebBrowser.Exists
Deley(500)
WEnd
You can do the same for other name mapping nodes, components, and their properties. See http://smartbear.com/support/viewarticle/12445/ for more info.