Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
atavism committed Oct 3, 2023
1 parent 00130b5 commit cf4c2c0
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions appium_kotlin/app/src/test/java/appium_kotlin/tests/AppTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -451,15 +451,6 @@ class AppTest() : BaseTest() {
Thread.sleep(1000)
}

fun initDriver(capabilities: DesiredCapabilities): AndroidDriver {
val isLocalRun = checkLocalRun()
val url = serviceURL(isLocalRun)
return AndroidDriver(
URL(url),
capabilities,
)
}

fun testEstablishPlaySession(driver: AndroidDriver) {
Assertions.assertEquals(driver.currentPackage, "com.android.vending")
Assertions.assertEquals(driver.currentActivity(), ".AssetBrowserActivity")
Expand Down Expand Up @@ -505,17 +496,4 @@ class AppTest() : BaseTest() {
driver.pressKey(KeyEvent(AndroidKey.HOME))
}

@Throws(Exception::class)
fun installedAppCapabilities(taskId: Int): DesiredCapabilities {
val capabilities = initialCapabilities(taskId)
capabilities.setCapability(AndroidMobileCapabilityType.APP_PACKAGE, testAppPackage)
capabilities.setCapability(AndroidMobileCapabilityType.APP_ACTIVITY, testAppActivity)
capabilities.setCapability(AndroidMobileCapabilityType.APP_WAIT_ACTIVITY, testAppActivity)
capabilities.setCapability(AndroidMobileCapabilityType.DEVICE_READY_TIMEOUT, 40)
capabilities.setCapability("deviceOrientation", "portrait")
capabilities.setCapability("autoLaunch", "false")
return capabilities
}


}

0 comments on commit cf4c2c0

Please sign in to comment.