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
{{ message }}
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.
Running tests on an Android device the screenshot fails, taking a screenshot using browser.driver.takeScreenshot() works but calling vr.takeScreenshot() causes unknown error.
Error: Failed: unknown error: operation is unsupported on Android
Running tests on an Android device the screenshot fails, taking a screenshot using browser.driver.takeScreenshot() works but calling vr.takeScreenshot() causes unknown error.
Error: Failed: unknown error: operation is unsupported on Android
It looks like this is the problem:
function _getProperties (browser) {
return browser.getCapabilities()
.then(_propertiesFn)
.then(function (properties) {
return browser.manage().window().getSize().then(function (size) {
properties.resolution = size.width + 'x' + size.height;
return properties;
});
});
}
Returning properties outside browser.manage().window().getSize() seems to work.
function _getProperties (browser) {
return browser.getCapabilities()
.then(_propertiesFn)
.then(function (properties) {
//return browser.manage().window().getSize().then(function (size) {
//properties.resolution = size.width + 'x' + size.height;
//return properties;
//});
return properties;
});
}
Will not setting the resolution cause problems?
The text was updated successfully, but these errors were encountered: