{"action":"created","issue":{"url":"https://api.github.com/repos/serenity-bdd/serenity-core/issues/559","repository_url":"https://api.github.com/repos/serenity-bdd/serenity-core","labels_url":"https://api.github.com/repos/serenity-bdd/serenity-core/issues/559/labels{/name}","comments_url":"https://api.github.com/repos/serenity-bdd/serenity-core/issues/559/comments","events_url":"https://api.github.com/repos/serenity-bdd/serenity-core/issues/559/events","html_url":"https://github.com/serenity-bdd/serenity-core/issues/559","id":180744832,"number":559,"title":"Can not cast driver to other driver using getProxiedDriver when running test on saucelabs","user":{"login":"loveshjain","id":20214999,"avatar_url":"https://avatars.githubusercontent.com/u/20214999?v=3","gravatar_id":"","url":"https://api.github.com/users/loveshjain","html_url":"https://github.com/loveshjain","followers_url":"https://api.github.com/users/loveshjain/followers","following_url":"https://api.github.com/users/loveshjain/following{/other_user}","gists_url":"https://api.github.com/users/loveshjain/gists{/gist_id}","starred_url":"https://api.github.com/users/loveshjain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loveshjain/subscriptions","organizations_url":"https://api.github.com/users/loveshjain/orgs","repos_url":"https://api.github.com/users/loveshjain/repos","events_url":"https://api.github.com/users/loveshjain/events{/privacy}","received_events_url":"https://api.github.com/users/loveshjain/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-03T20:56:06Z","updated_at":"2016-11-02T12:28:19Z","closed_at":null,"body":"Unable to cast driver to any other driver when we give serenity property \"saucelabs.url\"\n\nCode :- \n\nAndroidDriver<WebElement> androidDriver = ((AndroidDriver<WebElement>)((WebDriverFacade) getDriver()).getProxiedDriver()); \nSet<String> contextNames = androidDriver.getContextHandles();\n      for (String contextName : contextNames) {\n        System.out.println(contextName);\n            System.out.println(contextNames); //prints out something like [NATIVE_APP, WEBVIEW_<APP_PKG_NAME>]\n        }\n        androidDriver.context(\"NATIVE_APP\");\n\n**Error**:org.openqa.selenium.remote.RemoteWebDriver$$EnhancerByCGLIB$$d2f9355c cannot be cast to io.appium.java_client.android.AndroidDriver\n\nSerenity Properties file :- \n\nsaucelabs.test.name = Test-Saucelabs-Android\nwebdriver.driver = appium\nappium.hub = http://username:accesskey@localhost:4445/wd/hub\nappium.platformName = Android\nappium.platformVersion = 5.1\nappium.deviceName = Android Emulator\nappium.browserName = Browser\nappium.deviceType = phone\nappium.deviceOrientation = portrait\nsaucelabs.url=url\nsaucelabs.access.key=key\n\nThe test does not give error when we comment out saucelabs.url property. But in that case index.html does not have saucelabs video link attached to it.\n"},"comment":{"url":"https://api.github.com/repos/serenity-bdd/serenity-core/issues/comments/257850558","html_url":"https://github.com/serenity-bdd/serenity-core/issues/559#issuecomment-257850558","issue_url":"https://api.github.com/repos/serenity-bdd/serenity-core/issues/559","id":257850558,"user":{"login":"wakaleo","id":55986,"avatar_url":"https://avatars.githubusercontent.com/u/55986?v=3","gravatar_id":"","url":"https://api.github.com/users/wakaleo","html_url":"https://github.com/wakaleo","followers_url":"https://api.github.com/users/wakaleo/followers","following_url":"https://api.github.com/users/wakaleo/following{/other_user}","gists_url":"https://api.github.com/users/wakaleo/gists{/gist_id}","starred_url":"https://api.github.com/users/wakaleo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wakaleo/subscriptions","organizations_url":"https://api.github.com/users/wakaleo/orgs","repos_url":"https://api.github.com/users/wakaleo/repos","events_url":"https://api.github.com/users/wakaleo/events{/privacy}","received_events_url":"https://api.github.com/users/wakaleo/received_events","type":"User","site_admin":false},"created_at":"2016-11-02T12:28:19Z","updated_at":"2016-11-02T12:28:19Z","body":"Could you post the full stack dump?"}}
{"actor":{"display_login":"wakaleo"}}