Following code runs iPad emulation in Chrome in portrait
orientation.
How can I change it to get landscape
orientation?
const {Builder, By, until} = require('selenium-webdriver');
const chrome = require('selenium-webdriver/chrome');
var driver = new Builder()
.forBrowser('chrome')
.setChromeOptions(new chrome.Options()
.setMobileEmulation({deviceName: 'Apple iPad'})
.addArguments('start-maximized')
).build();
via Qwertiy
No comments:
Post a Comment