adspace


How to set the size of browser window using selenium?

Answer Posted / Kumar Mukesh

To set the size of the browser window using Selenium, you can use the Manage() class's window().setSize() method. Here is an example:

driver.manage().window().setSize(new Dimension(1024, 768));

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What’s selenese?

918


what will be the first salary and what will be the hike in the salary?

928


Have you created any framework?

1035


Do you know how to locate a link using its text in selenium?

983


How can you fetch an attribute from an element? How to retrieve typed text from a textbox?

1195