Answers for "how to use window size"

7

get window size javascript

const window {
  width: window.innerWidth,
  height: window.innerHeight
}
Posted by: Guest on June-03-2020
1

how to change size of the window

To resize browser window 
-I would create object of dimensions class
Dimension newD = new Dimension(480,620)
-Than I resize the current window to the given dimension
driver.manage().window().setSize(newD)
Posted by: Guest on December-05-2020

Code answers related to "how to use window size"

Code answers related to "Javascript"

Browse Popular Code Answers by Language