{"action":"created","issue":{"url":"https://api.github.com/repos/appium/java-client/issues/405","repository_url":"https://api.github.com/repos/appium/java-client","labels_url":"https://api.github.com/repos/appium/java-client/issues/405/labels{/name}","comments_url":"https://api.github.com/repos/appium/java-client/issues/405/comments","events_url":"https://api.github.com/repos/appium/java-client/issues/405/events","html_url":"https://github.com/appium/java-client/issues/405","id":158873850,"number":405,"title":"iOS/Android driver compatibility issue on a cross-platform testing","user":{"login":"sbjymc","id":13861919,"avatar_url":"https://avatars.githubusercontent.com/u/13861919?v=3","gravatar_id":"","url":"https://api.github.com/users/sbjymc","html_url":"https://github.com/sbjymc","followers_url":"https://api.github.com/users/sbjymc/followers","following_url":"https://api.github.com/users/sbjymc/following{/other_user}","gists_url":"https://api.github.com/users/sbjymc/gists{/gist_id}","starred_url":"https://api.github.com/users/sbjymc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbjymc/subscriptions","organizations_url":"https://api.github.com/users/sbjymc/orgs","repos_url":"https://api.github.com/users/sbjymc/repos","events_url":"https://api.github.com/users/sbjymc/events{/privacy}","received_events_url":"https://api.github.com/users/sbjymc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/appium/java-client/labels/User%20side%20problem/problem%20of%20an%20external%20tool","name":"User side problem/problem of an external tool","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-07T09:06:27Z","updated_at":"2016-06-07T20:52:33Z","closed_at":"2016-06-07T20:49:33Z","body":"## Description\r\n\r\nI'm using java-client 2.10 in my appium test framework, it's working good on my environment both for ios and android native application testing, I can reuse almost all the basic method like below:\r\n\r\n`public static AppiumDriver driver;`\r\n\r\n` public static void setUp() {`\r\n`if (PLATFORM_NAME.equals(\"ios\")){`\r\n  `driver = new IOSDriver(new URL(DRIVER_AGENT),capabilities);  `\r\n`}`\r\n`if (PLATFORM_NAME.equals(\"android\")){`\r\n  `driver = new AndroidDriver(new URL(DRIVER_AGENT),capabilities);  `\r\n`}`\r\n`}`\r\n\r\nThen I can create some common method likes 'click a object name' for both ios and android \r\n\r\n`public static void clickObjectByName(final String ObjectName) {`\r\n`driver.findElementByName(ObjectName).click();`\r\n`}`\r\n\r\nHowever, the driver is not working when I upgraded Java-client to 3.4.0\r\nit request to create separately 'AndDriver' and 'iOSDRIVER' instance, it means that the common methods which I setup in above example could not be reuse again, and I need to setup 2 different test framework for ios and android. \r\n\r\nSo I think current Java-Client is not friendly for the cross-platform compatibility. can we make some updates?\r\n\r\nAnd I found several people have the same query, here is the link:\r\n[https://discuss.appium.io/t/ios-android-driver-casting-on-a-shared-test-code-base/1095](url)\r\n"},"comment":{"url":"https://api.github.com/repos/appium/java-client/issues/comments/224410688","html_url":"https://github.com/appium/java-client/issues/405#issuecomment-224410688","issue_url":"https://api.github.com/repos/appium/java-client/issues/405","id":224410688,"user":{"login":"TikhomirovSergey","id":4927589,"avatar_url":"https://avatars.githubusercontent.com/u/4927589?v=3","gravatar_id":"","url":"https://api.github.com/users/TikhomirovSergey","html_url":"https://github.com/TikhomirovSergey","followers_url":"https://api.github.com/users/TikhomirovSergey/followers","following_url":"https://api.github.com/users/TikhomirovSergey/following{/other_user}","gists_url":"https://api.github.com/users/TikhomirovSergey/gists{/gist_id}","starred_url":"https://api.github.com/users/TikhomirovSergey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TikhomirovSergey/subscriptions","organizations_url":"https://api.github.com/users/TikhomirovSergey/orgs","repos_url":"https://api.github.com/users/TikhomirovSergey/repos","events_url":"https://api.github.com/users/TikhomirovSergey/events{/privacy}","received_events_url":"https://api.github.com/users/TikhomirovSergey/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T20:52:33Z","updated_at":"2016-06-07T20:52:33Z","body":"But we can solve each one separated problem. You can open an issue for each one problem that you face and suspect a bug.  "}}
{"actor":{"display_login":"TikhomirovSergey"}}