Is it possible to conduct end-to-end testing on iPhones, using Selenium and SauceLabs, for a Javascript application? My current setup involves wd.js as the Selenium client library.
Here's how you can set up your browser variable with
require("wd").remote(..., "promiseChain")
:
browser.init({
browserName: "iphone",
version: "4",
platform: "OS X 10.6",
deviceName: "iPhone",
"device-orientation": "portrait"
})
.sessionCapabilities()
.then(console.log.bind(console), console.log.bind(console))
.quit()
The above code snippet triggers an error:
{ [Error: [init({"browserName":"iphone","version":"4","platform":"OS X 10.6","deviceName":"iPhone","device-orientation":"portrait","record-video":false,"record-screenshots":false})] The environment you requested was unavailable.] data: 'Invalid device name specified: iPhone' }
It's worth noting that I sourced this combination directly from
Interestingly, everything seems to be working smoothly for all other combinations, including those involving Android devices.