Answered

How to minimise and maximise a web browser.

Hi,

Is there any command reference to minimise and maximise a browser window. This is a requirement in our test.

Thanks,

--Niranjan.

0
3 comments
Avatar
Joseph Hamdan

Hi Niranjan,

There seems to be no way using Javascript but there is a way with Java. You can create a Code Snippet and run it with Execute_Java command.

driver.manage().window().maximize();
Point p = new Point(0,3000);     	
driver.manage().window().setPosition(p);

You can create a code snippet on the platform as below:

https://subject7.atlassian.net/wiki/spaces/SD/pages/38502401/Create+a+Code+Snippet

Regards.
Subject7 Team

0
Comment actions Permalink
Avatar
Niranjan Das

Ho Joseph,

I agreed to you explanation that Using Java, still I feel it is an important part in automation so I feel I should open a ticket in new feature request so that we can get a couple of new additional subject-7 commands and it will be easy to use. What is your thought?

 

Thanks,

--Niranjan.

0
Comment actions Permalink

Please sign in to leave a comment.