Skip to content

Instantly share code, notes, and snippets.

@BenjaminLaschkar
Created June 2, 2022 09:36
Show Gist options
  • Save BenjaminLaschkar/a93a3fa9c7bf4f4cc2ef25d3c9fed967 to your computer and use it in GitHub Desktop.
Save BenjaminLaschkar/a93a3fa9c7bf4f4cc2ef25d3c9fed967 to your computer and use it in GitHub Desktop.
AppiumSetup.kt
@JvmStatic
@BeforeAll
fun setUp() {
caps.setCapability(MobileCapabilityType.PLATFORM_NAME, platformName)
caps.setCapability(MobileCapabilityType.AUTOMATION_NAME, automationName)
caps.setCapability(AndroidMobileCapabilityType.APP_PACKAGE, appPackage)
caps.setCapability(AndroidMobileCapabilityType.APP_ACTIVITY, activityName)
caps.setCapability(AndroidMobileCapabilityType.AUTO_GRANT_PERMISSIONS, true)
driver = AndroidDriver(URL(serverUrl), caps)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment