SELENIUM BASICS:


SELENIUM WEBDRIVER:


TESTNG:


REPORTS:


BUILD & CONTINUOUS INTEGRATION TOOLS:


CROSS BROWSER TESTING:


MOBILE TESTING:


AUTOMATION FRAMEWORKS:


API Testing:


INTERVIEW QUESTIONS:


SAMPLE RESUME:

How To Resize Browser Window Using Selenium WebDriver

In this post, we see how to Resize Browser Window using Selenium WebDriver. In some cases, we may need to resize browser window to some fixed dimensions, particularly when we are testing for responsive web design because we need to check to see how the different elements on the page render when we resize the browser window. Using Selenium WebDriver we could Resize Browser Window size. It allows resizing and maximizing window natively from its API.

Also Read: How To Scroll Web page Using Selenium WebDriver

To resize browser window to particular dimensions, we use ‘Dimension’ class to resize the browser window.

We know how to maximize the browser window to the maximum width and height of the screen.

The below code opens the SoftwareTestingMaterial website and then set the browser window size to 480*620 .

If you are not regular reader of my blog then I highly recommend you to signup for the free email newsletter using the below link.

Get our latest blog posts delivered to your inbox

Subscribe and get popular blog posts about software testing industry.

Rajkumar

1 thought on “How To Resize Browser Window Using Selenium WebDriver”

  1. Hi,

    Very nice Interview Questions of Selenium and Manual Testing

    Thank you very much for Posting.

Leave a Comment

Share via
Copy link
Powered by Social Snap