-
-
Save JithendraKumarC/001aeed100389ad5510b2da9327e8470 to your computer and use it in GitHub Desktop.
package pack3; | |
import java.net.URL; | |
import java.time.Duration; | |
import java.util.concurrent.TimeUnit; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.WebElement; | |
import org.openqa.selenium.interactions.touch.TouchActions; | |
import org.openqa.selenium.remote.DesiredCapabilities; | |
import org.openqa.selenium.remote.server.handler.FindElement; | |
import io.appium.java_client.MobileBy; | |
import io.appium.java_client.MobileDriver; | |
import io.appium.java_client.MobileElement; | |
import io.appium.java_client.TouchAction; | |
import io.appium.java_client.android.AndroidDriver; | |
public class Call1 { | |
public static void main(String[] args) { | |
/*@Test | |
public void test() {*/ | |
try | |
{ | |
DesiredCapabilities capabilities = new DesiredCapabilities(); | |
capabilities.setCapability("autoAcceptAlerts","true"); | |
capabilities.setCapability("automationName","Appium"); | |
capabilities.setCapability("platformName","Android"); | |
capabilities.setCapability("platformVersion","6.0"); | |
capabilities.setCapability("deviceName","35b4ac187d63"); | |
capabilities.setCapability("appPackage", "com.android.contacts"); | |
capabilities.setCapability("appActivity", "com.android.contacts.activities.TwelveKeyDialer"); | |
AndroidDriver<MobileElement> driver = new AndroidDriver<MobileElement>(new URL("http://127.0.0.1:4723/wd/hub"), capabilities); | |
//AndroidDriver driver=new AndroidDriver(capabilities); | |
driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS); | |
Thread.sleep(500); | |
/* driver.findElement(By.id("com.android.contacts:id/one")).click(); | |
driver.findElement(By.id("com.android.contacts:id/nine")).click(); | |
driver.findElement(By.id("com.android.contacts:id/eight")).click();*/ | |
WebElement ele=driver.findElement(By.className("android.widget.ImageButton")); | |
//Thread.sleep(500); | |
// List<WebElement> buttons = driver.findElementsByClassName("android.widget.ImageButton"); | |
// MobileElement hour = (MobileElement) buttons.get(0); | |
WebDriver oWB=((WebDriver) driver); | |
//driver.findElementById("com.android.contacts:id/dialer_view_container").click(); | |
if(ele.isDisplayed()) | |
{ | |
System.out.println(" class is present"); | |
WebElement ele1=driver.findElementById("com.android.contacts:id/one"); | |
//MobileElement om=driver.findElementById("com.android.contacts:id/one"); | |
if(ele1.isDisplayed()) | |
{ | |
System.out.println("1 --"); | |
ele1.click(); | |
} | |
Thread.sleep(500); | |
WebElement ele2=driver.findElementById("com.android.contacts:id/nine"); | |
if(ele2.isDisplayed()) | |
{ | |
System.out.println("2 --"); | |
ele2.click(); | |
} | |
Thread.sleep(500); | |
WebElement ele3=driver.findElementById("com.android.contacts:id/eight"); | |
if(ele3.isDisplayed()) | |
{ | |
System.out.println("3 --"); | |
ele3.click(); | |
} | |
Thread.sleep(500); | |
TouchAction oT=new TouchAction((AndroidDriver<MobileElement>) driver); | |
WebElement ele11 = oWB.findElement(MobileBy.id("com.android.contacts:id/one")); | |
if(ele11.isDisplayed()) | |
{ | |
//oT.longPress(ele11); | |
System.out.println("2nd atmpt --- 1"); | |
oT.press(ele11);//.waitAction(Duration.ofMillis(70)).release().perform(); | |
oT.release().perform(); | |
} | |
WebElement ele12 = driver.findElement(MobileBy.id("com.android.contacts:id/nine")); | |
if(ele12.isDisplayed()) | |
{ | |
new TouchAction((MobileDriver) driver).press(ele12);//.waitAction(Duration.ofMillis(70)).release().perform(); | |
} | |
WebElement ele13 = driver.findElement(MobileBy.id("com.android.contacts:id/eight")); | |
if(ele13.isDisplayed()) | |
{ | |
new TouchAction( driver).press(ele13);//.waitAction(Duration.ofMillis(70)).release().perform(); | |
} | |
new TouchAction(driver).press(ele12).release().perform(); | |
TouchAction ta=new TouchAction(driver); | |
ta.tap(240,737).perform(); | |
ta.tap(720,983).perform(); | |
}else{ | |
System.out.println(" class is not present"); | |
} | |
}catch(Exception e) | |
{ | |
e.printStackTrace(); | |
} | |
} | |
} |
I have used java client 5.0.0 beta A6/ 5.0.0 beta A8/ 5.0.1/ 5.0.2 and | |
Selenium Jar 3.0.1/ 3.3.1/ 3.5.3 with all probabilities. | |
For each I got different errors or element will diaplayed but not able to click | |
Appium version is 1.6.5 |
amedvedjev
commented
Sep 15, 2017
•
[AndroidBootstrap] Emitting alert message...
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Emitting system alert message
[Appium] Welcome to Appium v1.6.5
[Appium] Non-default server args:
[Appium] address: 127.0.0.1
[Appium] Appium REST http interface listener started on 127.0.0.1:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"appPackage":"com.android.contacts","appActivity":"com.android.contacts.activities.TwelveKeyDialer","platformVersion":"6.0","automationName":"Appium","browserName":"android","platformName":"Android","version":"","deviceName":"35b4ac187d63","platform":"ANDROID","autoAcceptAlerts":"true"},"requiredCapabilities":{},"capabilities":{"desiredCapabilities":{"appPackage":"com.android.contacts","appActivity":"com.android.contacts.activities.TwelveKeyDialer","platformVersion":"6.0","automationName":"Appium","browserName":"android","platformName":"Android","version":"","deviceName":"35b4ac187d63","platform":"ANDROID","autoAcceptAlerts":"true"},"requiredCapabilities":{},"alwaysMatch":{"browserName":"android","platformName":"Android"},"firstMatch":[]}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"appPackage":"com.android.contacts","appActivity":"com.android.contacts.activities.TwelveKeyDialer","platformVersion":"6.0","automationName":"Appium","browserName":"android","platformName":"Android","version":"","deviceName":"35b4ac187d63","platform":"ANDROID","autoAcceptAlerts":"true"},{},{"desiredCapabilities":{"appPackage":"com.android.contacts","appActivity":"com.android.contacts.activities.TwelveKeyDialer","platformVersion":"6.0","automationName":"Appium","browserName":"android","platformName":"Android","version":"","deviceName":"35b4ac187d63","platform":"ANDROID","autoAcceptAlerts":"true"},"requiredCapabilities":{},"alwaysMatch":{"browserName":"android","platformName":"Android"},"firstMatch":[]}]
[BaseDriver] Event 'newSessionRequested' logged at 1505465981522 (14:29:41 GMT+0530 (India Standard Time))
[Appium] Creating new AndroidDriver (v1.20.0) session
[Appium] Capabilities:
[Appium] appPackage: 'com.android.contacts'
[Appium] appActivity: 'com.android.contacts.activities.TwelveKeyDialer'
[Appium] platformVersion: '6.0'
[Appium] automationName: 'Appium'
[Appium] browserName: 'android'
[Appium] platformName: 'Android'
[Appium] version: ''
[Appium] deviceName: '35b4ac187d63'
[Appium] platform: 'ANDROID'
[Appium] autoAcceptAlerts: 'true'
[AndroidDriver] AndroidDriver version: 1.20.0
[BaseDriver] The following capabilities were provided, but are not recognized by appium: version, platform, autoAcceptAlerts.
[BaseDriver] Session created with session id: 570dd46a-494f-4e36-b35c-082e494da6b6
[AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 1.8.0_92
[ADB] Checking whether adb is present
[ADB] Using adb.exe from C:\Jithendra\AppDemo\android-sdk-windows\platform-tools\adb.exe
[AndroidDriver] Retrieving device list
[ADB] Trying to find a connected android device
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[AndroidDriver] Looking for a device with Android '6.0'
[ADB] Setting device id to 35b4ac187d63
[ADB] Getting device platform version
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Jithendra\AppDemo\android-sdk-windows\platform-tools\adb.exe' with args: ["-P",5037,"-s","35b4ac187d63","shell","getprop","ro.build.version.release"]
[AndroidDriver] Using device: 35b4ac187d63
[ADB] Checking whether adb is present
[ADB] Using adb.exe from C:\Jithendra\AppDemo\android-sdk-windows\platform-tools\adb.exe
[ADB] Setting device id to 35b4ac187d63
[AndroidDriver] App file was not listed, instead we're going to run com.android.contacts directly on the device
[AndroidDriver] Checking whether package is present on the device
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Jithendra\AppDemo\android-sdk-windows\platform-tools\adb.exe' with args: ["-P",5037,"-s","35b4ac187d63","shell","pm","list","packages","com.android.contacts"]
[AndroidDriver] Starting Android session
[ADB] Running 'C:\Jithendra\AppDemo\android-sdk-windows\platform-tools\adb.exe' with args: ["-P",5037,"-s","35b4ac187d63","wait-for-device"]
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Jithendra\AppDemo\android-sdk-windows\platform-tools\adb.exe' with args: ["-P",5037,"-s","35b4ac187d63","shell","echo","ping"]
[Logcat] Starting logcat capture
[AndroidDriver] Pushing settings apk to device...
[ADB] Getting install status for io.appium.settings
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Jithendra\AppDemo\android-sdk-windows\platform-tools\adb.exe' with args: ["-P",5037,"-s","35b4ac187d63","shell","pm","list","packages","io.appium.settings"]
[ADB] App is installed
[ADB] Getting package info for io.appium.settings
[ADB] Getting connected devices...
[ADB] Checking whether aapt is present
[ADB] Using aapt.exe from C:\Jithendra\AppDemo\android-sdk-windows\build-tools\26.0.1\aapt.exe
[ADB] 1 device(s) connected
[ADB] Running 'C:\Jithendra\AppDemo\android-sdk-windows\platform-tools\adb.exe' with args: ["-P",5037,"-s","35b4ac187d63","shell","dumpsys","package","io.appium.settings"]
[ADB] Cannot read version codes of C:\Users\Admin\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\io.appium.settings\app\build\outputs\apk\settings_apk-debug.apk and/or io.appium.settings. Assuming correct app version is already installed
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Jithendra\AppDemo\android-sdk-windows\platform-tools\adb.exe' with args: ["-P",5037,"-s","35b4ac187d63","shell","getprop","ro.build.version.sdk"]
[ADB] Device API level: 23
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Jithendra\AppDemo\android-sdk-windows\platform-tools\adb.exe' with args: ["-P",5037,"-s","35b4ac187d63","shell","dumpsys","package","io.appium.settings"]
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Jithendra\AppDemo\android-sdk-windows\platform-tools\adb.exe' with args: ["-P",5037,"-s","35b4ac187d63","shell","pm","dump","io.appium.settings"]
[ADB] Got the following command chunks to execute: pm,grant,io.appium.settings,android.permission.READ_PHONE_STATE,;,pm,grant,io.appium.settings,android.permission.WRITE_SETTINGS,;,pm,grant,io.appium.settings,android.permission.ACCESS_FINE_LOCATION,;,pm,grant,io.appium.settings,android.permission.ACCESS_COARSE_LOCATION,;,pm,grant,io.appium.settings,android.permission.ACCESS_MOCK_LOCATION,;
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Jithendra\AppDemo\android-sdk-windows\platform-tools\adb.exe' with args: ["-P",5037,"-s","35b4ac187d63","shell","pm","grant","io.appium.settings","android.permission.READ_PHONE_STATE",";","pm","grant","io.appium.settings","android.permission.WRITE_SETTINGS",";","pm","grant","io.appium.settings","android.permission.ACCESS_FINE_LOCATION",";","pm","grant","io.appium.settings","android.permission.ACCESS_COARSE_LOCATION",";","pm","grant","io.appium.settings","android.permission.ACCESS_MOCK_LOCATION",";"]
[AndroidDriver] Pushing unlock helper app to device...
[ADB] Running 'C:\Jithendra\AppDemo\android-sdk-windows\platform-tools\adb.exe' with args: ["-P",5037,"-s","35b4ac187d63","install","C:\Users\Admin\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-unlock\bin\unlock_apk-debug.apk"]
[ADB] Device API level: 23
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Jithendra\AppDemo\android-sdk-windows\platform-tools\adb.exe' with args: ["-P",5037,"-s","35b4ac187d63","shell","appops","set","io.appium.settings","android:mock_location","allow"]
[ADB] Getting device platform version
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Jithendra\AppDemo\android-sdk-windows\platform-tools\adb.exe' with args: ["-P",5037,"-s","35b4ac187d63","shell","getprop","ro.build.version.release"]
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Jithendra\AppDemo\android-sdk-windows\platform-tools\adb.exe' with args: ["-P",5037,"-s","35b4ac187d63","shell","wm","size"]
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Jithendra\AppDemo\android-sdk-windows\platform-tools\adb.exe' with args: ["-P",5037,"-s","35b4ac187d63","shell","getprop","ro.product.model"]
[ADB] Current device property 'ro.product.model': Redmi 3S
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Jithendra\AppDemo\android-sdk-windows\platform-tools\adb.exe' with args: ["-P",5037,"-s","35b4ac187d63","shell","getprop","ro.product.manufacturer"]
[ADB] Current device property 'ro.product.manufacturer': Xiaomi
[AndroidDriver] No app sent in, not parsing package/activity
[AndroidDriver] No app capability. Assuming it is already on the device
[AndroidDriver] Running fast reset (stop and clear)
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Jithendra\AppDemo\android-sdk-windows\platform-tools\adb.exe' with args: ["-P",5037,"-s","35b4ac187d63","shell","am","force-stop","com.android.contacts"]
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Jithendra\AppDemo\android-sdk-windows\platform-tools\adb.exe' with args: ["-P",5037,"-s","35b4ac187d63","shell","pm","clear","com.android.contacts"]
[AndroidBootstrap] Watching for bootstrap disconnect
[ADB] Forwarding system: 4724 to device: 4724
[ADB] Running 'C:\Jithendra\AppDemo\android-sdk-windows\platform-tools\adb.exe' with args: ["-P",5037,"-s","35b4ac187d63","forward","tcp:4724","tcp:4724"]
[UiAutomator] Starting UiAutomator
[UiAutomator] Moving to state 'starting'
[UiAutomator] Parsing uiautomator jar
[UiAutomator] Found jar name: 'AppiumBootstrap.jar'
[ADB] Running 'C:\Jithendra\AppDemo\android-sdk-windows\platform-tools\adb.exe' with args: ["-P",5037,"-s","35b4ac187d63","push","C:\Users\Admin\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-android-bootstrap\bootstrap\bin\AppiumBootstrap.jar","/data/local/tmp/"]
[ADB] Attempting to kill all uiautomator processes
[ADB] Getting all processes with uiautomator
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Jithendra\AppDemo\android-sdk-windows\platform-tools\adb.exe' with args: ["-P",5037,"-s","35b4ac187d63","shell","ps"]
[ADB] Attempting to kill process 23038
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Jithendra\AppDemo\android-sdk-windows\platform-tools\adb.exe' with args: ["-P",5037,"-s","35b4ac187d63","shell","kill",23038]
[UiAutomator] Starting UIAutomator
[ADB] Creating ADB subprocess with args: ["-P",5037,"-s","35b4ac187d63","shell","uiautomator","runtest","AppiumBootstrap.jar","-c","io.appium.android.bootstrap.Bootstrap","-e","pkg","com.android.contacts","-e","disableAndroidWatchers",false,"-e","acceptSslCerts",false]
[UiAutomator] UiAutomator exited unexpectedly with code 0, signal null
[UiAutomator] Moving to state 'stopped'
[AndroidDriver] Shutting down Android driver
[Appium] Closing session, cause was 'UiAUtomator shut down unexpectedly'
[Appium] Removing session 84f3a83c-b05e-43f9-b772-e14dd2ddfaac from our master session list
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Jithendra\AppDemo\android-sdk-windows\platform-tools\adb.exe' with args: ["-P",5037,"-s","35b4ac187d63","shell","am","force-stop","com.android.contacts"]
[UiAutomator] Moving to state 'online'
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Loading json...
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Registered crash watchers.
[AndroidBootstrap] Android bootstrap socket is now connected
[ADB] Getting connected devices...
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Client connected
[ADB] 1 device(s) connected
[ADB] Running 'C:\Jithendra\AppDemo\android-sdk-windows\platform-tools\adb.exe' with args: ["-P",5037,"-s","35b4ac187d63","shell","dumpsys","window"]
[AndroidDriver] Screen already unlocked, doing nothing
[ADB] Device API level: 23
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Jithendra\AppDemo\android-sdk-windows\platform-tools\adb.exe' with args: ["-P",5037,"-s","35b4ac187d63","shell","am","start","-W","-n","com.android.contacts/com.android.contacts.activities.TwelveKeyDialer","-S"]
[ADB] Pressing the HOME button
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Jithendra\AppDemo\android-sdk-windows\platform-tools\adb.exe' with args: ["-P",5037,"-s","35b4ac187d63","shell","input","keyevent",3]
[AndroidBootstrap] Cannot shut down Android bootstrap; it has already shut down
[Logcat] Stopping logcat capture
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Jithendra\AppDemo\android-sdk-windows\platform-tools\adb.exe' with args: ["-P",5037,"-s","35b4ac187d63","shell","am","force-stop","io.appium.unlock"]
[AndroidDriver] Not cleaning generated files. Add clearSystemFiles
capability if wanted.
[Appium] New AndroidDriver session created successfully, session 570dd46a-494f-4e36-b35c-082e494da6b6 added to master session list
[BaseDriver] Event 'newSessionStarted' logged at 1505465998250 (14:29:58 GMT+0530 (India Standard Time))
[MJSONWP] Responding to client with driver.createSession() result: {"platform":"ANDROID","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"appPackage":"com.android.contacts","appActivity":"com.android.contacts.activities.TwelveKeyDialer","platformVersion":"6.0","automationName":"Appium","browserName":"android","platformName":"Android","version":"","deviceName":"35b4ac187d63","platform":"ANDROID","autoAcceptAlerts":"true"},"appPackage":"com.android.contacts","appActivity":"com.android.contacts.activities.TwelveKeyDialer","platformVersion":"6.0.1","automationName":"Appium","browserName":"android","platformName":"Android","version":"","deviceName":"35b4ac187d63","autoAcceptAlerts":"true","deviceUDID":"35b4ac187d63","deviceScreenSize":"720x1280","deviceModel":"Redmi 3S","deviceManufacturer":"Xiaomi"}
[HTTP] <-- POST /wd/hub/session 200 16734 ms - 949
[HTTP] --> GET /wd/hub/session/570dd46a-494f-4e36-b35c-082e494da6b6 {}
[MJSONWP] Calling AppiumDriver.getSession() with args: ["570dd46a-494f-4e36-b35c-082e494da6b6"]
[MJSONWP] Responding to client with driver.getSession() result: {"platform":"ANDROID","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"appPackage":"com.android.contacts","appActivity":"com.android.contacts.activities.TwelveKeyDialer","platformVersion":"6.0","automationName":"Appium","browserName":"android","platformName":"Android","version":"","deviceName":"35b4ac187d63","platform":"ANDROID","autoAcceptAlerts":"true"},"appPackage":"com.android.contacts","appActivity":"com.android.contacts.activities.TwelveKeyDialer","platformVersion":"6.0.1","automationName":"Appium","browserName":"android","platformName":"Android","version":"","deviceName":"35b4ac187d63","autoAcceptAlerts":"true","deviceUDID":"35b4ac187d63","deviceScreenSize":"720x1280","deviceModel":"Redmi 3S","deviceManufacturer":"Xiaomi"}
[HTTP] <-- GET /wd/hub/session/570dd46a-494f-4e36-b35c-082e494da6b6 200 3 ms - 949
[HTTP] --> GET /wd/hub/session/570dd46a-494f-4e36-b35c-082e494da6b6 {}
[MJSONWP] Calling AppiumDriver.getSession() with args: ["570dd46a-494f-4e36-b35c-082e494da6b6"]
[MJSONWP] Responding to client with driver.getSession() result: {"platform":"ANDROID","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"appPackage":"com.android.contacts","appActivity":"com.android.contacts.activities.TwelveKeyDialer","platformVersion":"6.0","automationName":"Appium","browserName":"android","platformName":"Android","version":"","deviceName":"35b4ac187d63","platform":"ANDROID","autoAcceptAlerts":"true"},"appPackage":"com.android.contacts","appActivity":"com.android.contacts.activities.TwelveKeyDialer","platformVersion":"6.0.1","automationName":"Appium","browserName":"android","platformName":"Android","version":"","deviceName":"35b4ac187d63","autoAcceptAlerts":"true","deviceUDID":"35b4ac187d63","deviceScreenSize":"720x1280","deviceModel":"Redmi 3S","deviceManufacturer":"Xiaomi"}
[HTTP] <-- GET /wd/hub/session/570dd46a-494f-4e36-b35c-082e494da6b6 200 3 ms - 949
[HTTP] --> POST /wd/hub/session/570dd46a-494f-4e36-b35c-082e494da6b6/timeouts {"type":"implicit","ms":15000}
[MJSONWP] Calling AppiumDriver.timeouts() with args: ["implicit",15000,"570dd46a-494f-4e36-b35c-082e494da6b6"]
[BaseDriver] Set implicit wait to 15000ms
[MJSONWP] Responding to client with driver.timeouts() result: null
[HTTP] <-- POST /wd/hub/session/570dd46a-494f-4e36-b35c-082e494da6b6/timeouts 200 5 ms - 76
[HTTP] --> POST /wd/hub/session/570dd46a-494f-4e36-b35c-082e494da6b6/elements {"using":"class name","value":"android.widget.ImageButton"}
[MJSONWP] Calling AppiumDriver.findElements() with args: ["class name","android.widget.ImageButton","570dd46a-494f-4e36-b35c-082e494da6b6"]
[BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[BaseDriver] Waiting up to 15000 ms for condition
[AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"class name","selector":"android.widget.ImageButton","context":"","multiple":true}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"class name","selector":"android.widget.ImageButton","context":"","multiple":true}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android.widget.ImageButton' using 'CLASS_NAME' with the contextId: '' multiple: true
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[CLASS=android.widget.ImageButton]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] getElements selector:UiSelector[CLASS=android.widget.ImageButton]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Element[] is null: (0)
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] getElements tmp selector:UiSelector[CLASS=android.widget.ImageButton, INSTANCE=0]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Element[] is null: (1)
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] getElements tmp selector:UiSelector[CLASS=android.widget.ImageButton, INSTANCE=1]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Element[] is null: (2)
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] getElements tmp selector:UiSelector[CLASS=android.widget.ImageButton, INSTANCE=2]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Element[] is null: (3)
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] getElements tmp selector:UiSelector[CLASS=android.widget.ImageButton, INSTANCE=3]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Element[] is null: (4)
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] getElements tmp selector:UiSelector[CLASS=android.widget.ImageButton, INSTANCE=4]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Element[] is null: (5)
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] getElements tmp selector:UiSelector[CLASS=android.widget.ImageButton, INSTANCE=5]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Element[] is null: (6)
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] getElements tmp selector:UiSelector[CLASS=android.widget.ImageButton, INSTANCE=6]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Element[] is null: (7)
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] getElements tmp selector:UiSelector[CLASS=android.widget.ImageButton, INSTANCE=7]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Element[] is null: (8)
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] getElements tmp selector:UiSelector[CLASS=android.widget.ImageButton, INSTANCE=8]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Element[] is null: (9)
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] getElements tmp selector:UiSelector[CLASS=android.widget.ImageButton, INSTANCE=9]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Element[] is null: (10)
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] getElements tmp selector:UiSelector[CLASS=android.widget.ImageButton, INSTANCE=10]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Element[] is null: (11)
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] getElements tmp selector:UiSelector[CLASS=android.widget.ImageButton, INSTANCE=11]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Element[] is null: (12)
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] getElements tmp selector:UiSelector[CLASS=android.widget.ImageButton, INSTANCE=12]
[AndroidBootstrap] Received command result from bootstrap
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":[{"ELEMENT":"1"},{"ELEMENT":"2"},{"ELEMENT":"3"},{"ELEMENT":"4"},{"ELEMENT":"5"},{"ELEMENT":"6"},{"ELEMENT":"7"},{"ELEMENT":"8"},{"ELEMENT":"9"},{"ELEMENT":"10"},{"ELEMENT":"11"},{"ELEMENT":"12"}]}
[MJSONWP] Responding to client with driver.findElements() result: [{"ELEMENT":"1"},{"ELEMENT":"2"},{"ELEMENT":"3"},{"ELEMENT":"4"},{"ELEMENT":"5"},{"ELEMENT":"6"},{"ELEMENT":"7"},{"ELEMENT":"8"},{"ELEMENT":"9"},{"ELEMENT":"10"},{"ELEMENT":"11"},{"ELEMENT":"12"}]
[HTTP] <-- POST /wd/hub/session/570dd46a-494f-4e36-b35c-082e494da6b6/elements 200 1426 ms - 268
[HTTP] --> POST /wd/hub/session/570dd46a-494f-4e36-b35c-082e494da6b6/elements {"using":"id","value":"one"}
[MJSONWP] Calling AppiumDriver.findElements() with args: ["id","one","570dd46a-494f-4e36-b35c-082e494da6b6"]
[BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[BaseDriver] Waiting up to 15000 ms for condition
[AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"one","context":"","multiple":true}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"one","context":"","multiple":true}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'one' using 'ID' with the contextId: '' multiple: true
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[RESOURCE_ID=com.android.contacts:id/one]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] getElements selector:UiSelector[RESOURCE_ID=com.android.contacts:id/one]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Element[] is null: (0)
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] getElements tmp selector:UiSelector[INSTANCE=0, RESOURCE_ID=com.android.contacts:id/one]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Element[] is null: (1)
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] getElements tmp selector:UiSelector[INSTANCE=1, RESOURCE_ID=com.android.contacts:id/one]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[RESOURCE_ID=android:id/one]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] getElements selector:UiSelector[RESOURCE_ID=android:id/one]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Element[] is null: (0)
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] getElements tmp selector:UiSelector[INSTANCE=0, RESOURCE_ID=android:id/one]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[RESOURCE_ID=one]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] getElements selector:UiSelector[RESOURCE_ID=one]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Element[] is null: (0)
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] getElements tmp selector:UiSelector[INSTANCE=0, RESOURCE_ID=one]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[DESCRIPTION=one]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] getElements selector:UiSelector[DESCRIPTION=one]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Element[] is null: (0)
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] getElements tmp selector:UiSelector[DESCRIPTION=one, INSTANCE=0]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Element[] is null: (1)
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] getElements tmp selector:UiSelector[DESCRIPTION=one, INSTANCE=1]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":[{"ELEMENT":"13"},{"ELEMENT":"14"}]}
[AndroidBootstrap] Received command result from bootstrap
[MJSONWP] Responding to client with driver.findElements() result: [{"ELEMENT":"13"},{"ELEMENT":"14"}]
[HTTP] <-- POST /wd/hub/session/570dd46a-494f-4e36-b35c-082e494da6b6/elements 200 371 ms - 107
[HTTP] --> POST /wd/hub/session/570dd46a-494f-4e36-b35c-082e494da6b6/touch/perform {"actions":[{"action":"press","options":{"element":"13"}},{"action":"wait","options":{"ms":70}},{"action":"release","options":{}}]}
[MJSONWP] Calling AppiumDriver.performTouch() with args: [[{"action":"press","options":{"element":"13"}},{"action":"wait","options":{"ms":70}},{"action":"release","options":{}}],"570dd46a-494f-4e36-b35c-082e494da6b6"]
[AndroidBootstrap] Sending command to android: {"cmd":"action","action":"element:getLocation","params":{"elementId":"13"}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"element:getLocation","params":{"elementId":"13"}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: getLocation
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":{"x":0,"y":614}}
[AndroidBootstrap] Received command result from bootstrap
[AndroidBootstrap] Sending command to android: {"cmd":"action","action":"element:getSize","params":{"elementId":"13"}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"element:getSize","params":{"elementId":"13"}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: getSize
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":{"width":240,"height":123}}
[AndroidBootstrap] Received command result from bootstrap
[AndroidBootstrap] Sending command to android: {"cmd":"action","action":"element:touchDown","params":{"elementId":"13","x":120,"y":675.5}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"element:touchDown","params":{"elementId":"13","x":120,"y":675.5}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: touchDown
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Performing TouchDown using element? true x: 120, y: 675
[AndroidBootstrap] Received command result from bootstrap
[HTTP] <-- POST /wd/hub/session/570dd46a-494f-4e36-b35c-082e494da6b6/touch/perform 500 146 ms - 154
[AndroidBootstrap] [BOOTSTRAP LOG] [error] error while invoking method private boolean com.android.uiautomator.core.InteractionController.touchDown(int,int) on object com.android.uiautomator.core.InteractionController@499ff33 with parameters [120, 675] null
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Problem invoking touchDown: java.lang.RuntimeException: error while invoking method private boolean com.android.uiautomator.core.InteractionController.touchDown(int,int) on object com.android.uiautomator.core.InteractionController@499ff33 with parameters [120, 675]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":13,"value":"Failed to execute touch event"}