selenium-webdriverSetting / Getting Browser window size


Introduction

Setting or getting window size of any browser during automation

Syntax

  • driver.manage().window().maximize();
  • driver.manage().window().setSize(DimensionObject);
  • driver.manage().window().getSize()