Forum Discussion

Siax's avatar
Siax
Contributor
12 years ago

Browser maximising

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.

2 Replies

  • Siax's avatar
    Siax
    Contributor
    Hi,

    Yes it did help, Although I don't feel it is the long term solution it certainly has allowed me to continue with the work I'm trying to do.



    Thank you for following up.