Siax
13 years agoContributor
Maximize browser window
Hi,
I'm hoping to find a solution to make sure the browser is maximised before testing comenses.
I launch the browser using:
Browsers.Item(btIExplorer).Run(Project.Variables.websiteUrl);
I was wondering how I can ensure this is maximised?
I was using:-
Sys.Process("IEXPLORE").BrowserWindow(0).Maximize();
but this is unreliable as it's hard coded and the browser might not be in running as BrowserWindow(0).
Any assistance is appreciated.
I'm hoping to find a solution to make sure the browser is maximised before testing comenses.
I launch the browser using:
Browsers.Item(btIExplorer).Run(Project.Variables.websiteUrl);
I was wondering how I can ensure this is maximised?
I was using:-
Sys.Process("IEXPLORE").BrowserWindow(0).Maximize();
but this is unreliable as it's hard coded and the browser might not be in running as BrowserWindow(0).
Any assistance is appreciated.