ment('Then the correct dialog message should be displayed') Mobile.tap(findTestObject('Application/App/Activity/-Custom Dialog'), 10)ĭef message = Mobile.getText(findTestObject('Application/App/Activity/Custom Dialog/'), Mobile.tap(findTestObject('Application/App/-Activity'), 10) Mobile.tap(findTestObject('Application/ - App'), 10) 'Instead of using Start Application keyword, we use the below code to create a similar driver so that other Mobile built-in keywords can re-use this driver.' String kobitonServerUrl = capabilities = new DesiredCapabilities() ĬtCapability("sessionName", "Automation test session") ĬtCapability("sessionDescription", "") ĬtCapability("deviceOrientation", "portrait") ĬtCapability("captureScreenshots", true) ĬtCapability("browserName", "chrome") ĬtCapability("deviceGroup", "KOBITON") ĬtCapability("deviceName", "Galaxy J3(2016)") ĬtCapability("platformVersion", "6.0.1") ĬtCapability("platformName", "Android") ĬtCapability("app", "kobiton-store:v488518")ĪppiumDriverManager.createMobileDriver(MobileDriverType.ANDROID_DRIVER, capabilities, new URL(kobitonServerUrl)) Mobile.startApplication('kobiton-store:10717', false) Import internal.GlobalVariable as GlobalVariable Import .configuration.RunConfiguration as RunConfiguration Here is a sample of desired capabilities for mobile device retrieved from Kobiton portal: You can also refer to Kobiton's documentation for this step: Getting Started with Appium Testing with Kobiton. Select Automation Settings and copy the desired capabilities.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |