Contributions
Suppress 'The Browser is already running' warning
I have a script that will always reuse the already open instance of Chrome, so whenever my script kicks off and navigates to the first page specified in my script, I get a 'Warning, the browser is already running' message. I can create a routine that checks for open browsers and closes them first, but I specifically DO want to use the already running instance of Chrome. Is there anyway to supress this warning, or alternatively turn off logging until after that step has occured? I'm using VBA as my scripting language.Solved2.3KViews0likes2CommentsRe: Using Global variables in Unit Script
Apologies for the late response, that worked perfectly thank you. I am able to call my variable directly by saying [action] Project.Variables.PageLink. One thing I'm not entirely clear on is whether it fetches Default Value or Local value? (I have them both set to the same value).3.6KViews0likes1CommentUsing Global variables in Unit Script
Trying to learn scripting, and have a simple script that opens a webpage and logs in. I have successfully gotten this to work using local variables, however I want to use persistent variables that can be reused in other scripts. So I created a new variable with a type of 'String' as such: Name: PageLink Type: String Default Value: http://www.mypage.com/login/ Local Value:http://www.mypage.com/login/ In my script, I can open the browser to the page if I set the variable locally, i.e: Sub Login Dim Env Env = "http://www.mypage.com/login/" Browsers.Item(btIExplorer).Run Env End Sub That will open IE to the page set in 'Env'. If I try using my global variable: Sub Login Dim Env Dim Variables Set Variables = ProjectSuite.Variables Env = Variables.VariableByName("PageLink") Browsers.Item(btIExplorer).Run Env End Sub Then I get the error message: "The Variables object does not contain a variable with the "PageLink" name". I'm not quite sure what I'm doing wrong, or how I can tell my local variable to get its value from my global variable?Solved3.7KViews0likes5Comments