Open gshah30 opened 2 years ago
@gshah30 it looks like a different project was published on npm under the name of this project.
i've recently updated the driver to work with the latest appium 2 beta. please ensure you have that then re-check the README for the new name of this driver on NPM, and try that way (make sure to uninstall any existing roku driver from appium)
@gshah30 could you please share the Roku tv capabilities (appium 2.0 with Java 11) caps.setCapability("appium:rokuUser", "rokudev"); caps.setCapability("appium:rokuPass", 1111); caps.setCapability("appium: rokuHost", "192.168.99.74"); caps.setCapability("appium:rokuEcpPort", 8060); caps.setCapability("platformName", "Roku"); caps.setCapability("appium:automationName", "Roku"); caps.setCapability("appium:rokuHeaderHost", "192.168.99.74"); caps.setCapability("appium:rokuWebPort", 80); caps.setCapability("appium:platformVersion", "11"); caps.setCapability("app", "dev"); driver = WebDriver(new URL("http://0.0.0.0:"+"4723"+"/wd/hub"), caps);
When I try to run a session with the headspin roku driver I get the SessionNotCreatedError error.
Caps used
Appium logs
I tried to debug the issue by adding
inside appium base driver and I can see that the function
validateDesiredCaps
throws error because it gets thecaps
object as{}
and it tries to validate it with the constraints{"platformName":{"isString":true,"inclusionCaseInsensitive":["Roku"],"presence":{"allowEmpty":false}},"deviceName":{"isString":true},"platformVersion":{"isString":true},"newCommandTimeout":{"isNumber":true},"automationName":{"isString":true},"autoLaunch":{"isBoolean":true},"udid":{"isString":true},"orientation":{"inclusion":["LANDSCAPE","PORTRAIT"]},"autoWebview":{"isBoolean":true},"noReset":{"isBoolean":true},"fullReset":{"isBoolean":true},"language":{"isString":true},"locale":{"isString":true},"eventTimings":{"isBoolean":true},"printPageSourceOnFindFailure":{"isBoolean":true},"app":{"isString":true,"presence":{"allowEmpty":false}},"appId":{"isString":true,"presence":{"allowEmpty":false}},"contentId":{"isString":true},"mediaType":{"isString":true},"ip":{"isString":true,"presence":{"allowEmpty":false}},"password":{"isString":true,"presence":{"allowEmpty":false}},"username":{"isString":true,"presence":false}}
Is the Headspin's Roku Driver suitable for production use ?