klabbe
3 years agoOccasional Contributor
TestcComplete does not find chrome browser with "Sys.WaitBrowser"
Hi, I have a script that validate if the browser Exists and if true it calls the Navigate method and if not it call the Run method. My problem is : Even though the browser is already running...
- 3 years ago
Hello klabbe ,
Sys.WaitBrowser Method requires only browser process name "chrome" not the browser constant btChrome. So, you can change the below code as,
def ClickBoutonOkFiltres():
url = Project.Variables.navigate_url
# Launch Chrome if it is not running
if (Sys.WaitBrowser("chrome", 10000).Exists):
Browsers.Item[btChrome].Navigate(url)else:
Browsers.Item[btChrome].Run(url)