சாளர அளவைப் பெறுதல்
உலாவி சாளரத்தின் அளவை திருப்பி அனுப்புகிறது.
பயன்பாடு
browser.getWindowSize()
உதாரணம்
getWindowSize.js
it('should return browser window size', async () => {
const windowSize = await browser.getWindowSize();
console.log(windowSize);
// outputs `{ width: 1280, height: 767 }`
});
திருப்பி அனுப்புவது
- <Object>
return
: W3C க்கு{ x, y, width, height }
அல்லது W3C அல்லாத உலாவிக்கு{ width, height }