You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm in the wdio.conf.js and I'm trying to get the size of the browser to put it in the screenshot name.
I've tried like this :
var browserViewport = context.meta.viewport;
var browserWidth = browserViewport.width;
var browserHeight = browserViewport.height;
But it's only working for desktop browser. I have ‘Cannot read property 'viewport' of undefined ‘ for mobile device (android and iOS). Is they're a way to get it on mobile ?
Thanks a lot
The text was updated successfully, but these errors were encountered:
Hello,
I'm in the wdio.conf.js and I'm trying to get the size of the browser to put it in the screenshot name.
I've tried like this :
But it's only working for desktop browser. I have ‘Cannot read property 'viewport' of undefined ‘ for mobile device (android and iOS). Is they're a way to get it on mobile ?
Thanks a lot
The text was updated successfully, but these errors were encountered: