|
16 | 16 |
|
17 | 17 | package io.appium.java_client.android; |
18 | 18 |
|
19 | | -import io.appium.java_client.*; |
| 19 | +import io.appium.java_client.MobileBy; |
| 20 | +import io.appium.java_client.MobileElement; |
| 21 | +import io.appium.java_client.MultiTouchAction; |
| 22 | +import io.appium.java_client.SwipeElementDirection; |
| 23 | +import io.appium.java_client.TouchAction; |
20 | 24 | import io.appium.java_client.remote.MobileCapabilityType; |
21 | 25 | import io.appium.java_client.service.local.AppiumDriverLocalService; |
22 | | -import org.junit.*; |
| 26 | +import org.junit.After; |
| 27 | +import org.junit.AfterClass; |
| 28 | +import org.junit.Before; |
| 29 | +import org.junit.BeforeClass; |
| 30 | +import org.junit.Test; |
23 | 31 | import org.openqa.selenium.By; |
24 | 32 | import org.openqa.selenium.WebElement; |
25 | 33 | import org.openqa.selenium.remote.DesiredCapabilities; |
@@ -82,10 +90,10 @@ public void dragNDropTest() { |
82 | 90 | WebElement actionBarTitle = driver.findElement(By.id("android:id/action_bar_title")); |
83 | 91 |
|
84 | 92 | assertEquals("Wrong title.", "Views/Drag and Drop", actionBarTitle.getText()); |
85 | | - WebElement dragDot1 = driver.findElement(By.id("com.example.android.apis:id/drag_dot_1")); |
86 | | - WebElement dragDot3 = driver.findElement(By.id("com.example.android.apis:id/drag_dot_3")); |
| 93 | + WebElement dragDot1 = driver.findElement(By.id("io.appium.android.apis:id/drag_dot_1")); |
| 94 | + WebElement dragDot3 = driver.findElement(By.id("io.appium.android.apis:id/drag_dot_3")); |
87 | 95 |
|
88 | | - WebElement dragText = driver.findElement(By.id("com.example.android.apis:id/drag_text")); |
| 96 | + WebElement dragText = driver.findElement(By.id("io.appium.android.apis:id/drag_text")); |
89 | 97 | assertEquals("Drag text not empty", "", dragText.getText()); |
90 | 98 |
|
91 | 99 | TouchAction dragNDrop = new TouchAction(driver).longPress(dragDot1).moveTo(dragDot3).release(); |
|
0 commit comments