getWindowSize
Restituisce la dimensione della finestra del browser.
Utilizzo
browser.getWindowSize()
Esempio
getWindowSize.js
it('should return browser window size', async () => {
const windowSize = await browser.getWindowSize();
console.log(windowSize);
// outputs `{ width: 1280, height: 767 }`
});
Restituisce
- <Object>
return:{ x, y, width, height }per browser W3C o{ width, height }per browser non W3C