Pular para o conteúdo principal
🇺🇦  We stand with the people of Ukraine. We encourage compassion, and hope for peace.   🇺🇦
Please support humanitarian efforts for the Ukraine crisis through the International Committee of the Red Cross! #StandWithUkraine

getWindowSize

Retorna o tamanho da janela do navegador.

Uso
browser.getWindowSize()
Exemplo
getWindowSize.js
it('should return browser window size', async () => {
const windowSize = await browser.getWindowSize();
console.log(windowSize);
// outputs `{ width: 1280, height: 767 }`
});
Retorna
  • <Object> return: { x, y, width, height } para navegadores W3C ou { width, height } para navegadores não W3C

Welcome! How can I help?

WebdriverIO AI Copilot
Morty Proxy This is a proxified and sanitized view of the page, visit original site.