Appium scripting error

Hey Guys , I have tried several way Like xpath, class, id to click a particular button , But I can not. MY appium Version 1.8 , Java-client 7 and selenium 3.12
My script for that particular button which did not work
//new WebDriverWait(driver2, 6).until(ExpectedConditions.presenceOfElementLocated(By.xpath("//*[@text=‘GO ONLINE’]")));
// driver2.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS);
// driver2.findElement(By.xpath("//android.widget.Button[contains(@resource-id,‘com.shohoz.driver:id/button_online_offline’)]")).click();;

   //driver2.findElement(By.xpath("//*[@text='GO ONLINE']")).click();
  //  driver2.findElement(By.xpath("//android.widget.Button[@text='GO ONLINE']")).click();
   // driver2.findElement(By.id("com.shohoz.driver:id/ll_phone_verify")).click();

//driver2.findElement(By.id(“com.shohoz.driver.utilities.MyButton:id/button_online_offline”)).click();

Capture1

.

Can you please attach Appium log ? Are you able to perform other actions in your app or this is your launch screen ? Have you tried manually clicking on this button from Appium inspector through your xpaths or any locator?

1 Like

yes , I can able to perform other function. Only that button is making issue. Yes I have tried manually. I am just frustrated
my log for that particular button
[HTTP] --> POST /wd/hub/session/25a1d70b-c3d4-4a3e-9011-0ce261e00116/element

[HTTP] {“using”:“xpath”,“value”:"//*[@content-desc='bk’and @index=‘4’]"}

[W3C] Calling AppiumDriver.findElement() with args: [“xpath”,"//*[@content-desc='bk’and @index=‘4’]",“25a1d70b-c3d4-4a3e-9011-0ce261e00116”]

[BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator

[BaseDriver] Waiting up to 10000 ms for condition

[AndroidBootstrap] Sending command to android: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“xpath”,“selector”:"//*[@content-desc='bk’and @index=‘4’]",“context”:"",“multiple”:false}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“xpath”,“selector”:"//*[@content-desc='bk’and @index=‘4’]",“context”:"",“multiple”:false}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding '//*[@content-desc=‘bk’and @index=‘4’]’ using ‘XPATH’ with the contextId: ‘’ multiple: false

[HTTP] <-- POST /wd/hub/session/25a1d70b-c3d4-4a3e-9011-0ce261e00116/element - - ms - -

One suggestion - Find the button and get in to one Web element variable. Then use this variable and call click function to click.

Webelement goOnline = driver.findElement(By.xpath(//*[contains(@text,‘GO ONLINE’)]));
//Give some delay
driver.wait();

if(goOnline.isdisplayed){
goOnline.click();
}

So why this because your action page will be inspected two times one while getting the element in variable and then later while checking whether it is displayed or not?

1 Like

hey
I will try it tomorrow at office. Thanks for the suggestion.then inform you

Hey
It did not work. Again same problem occurred. Here is my log. Would you check please
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding ‘//*[contains(@text,‘GO ONLINE’)]’ using ‘XPATH’ with the contextId: ‘’ multiple: false

[HTTP] <-- POST /wd/hub/session/9029f9c7-a073-4dc0-8160-cda02f9c716f/element - - ms - -

[HTTP]

[HTTP] --> POST /wd/hub/session/9029f9c7-a073-4dc0-8160-cda02f9c716f/element

[HTTP] {“using”:“xpath”,“value”:"//*[contains(@text,‘GO ONLINE’)]"}

[W3C] Calling AppiumDriver.findElement() with args: [“xpath”,"//*[contains(@text,‘GO ONLINE’)]",“9029f9c7-a073-4dc0-8160-cda02f9c716f”]

Add full log to gist

Hello
Sorry For the late.Please help me… Please check .Still I am getting error. here is my full log

The server is running

[Appium] Welcome to Appium v1.11.1

[Appium] Non-default server args:

[Appium] port: 5000

[Appium] bootstrapPort: 200

[Appium] sessionOverride: true

[Appium] Appium REST http interface listener started on 0.0.0.0:5000

[HTTP] --> POST /wd/hub/session

[HTTP] {“desiredCapabilities”:{“appActivity”:“com.shohoz.driver.activity.SplashScreen”,“appPackage”:“com.shohoz.driver”,“platformName”:“Android”,“deviceName”:“noki”,“platformVersion”:“9”},“capabilities”:{“alwaysMatch”:{“appium:appActivity”:“com.shohoz.driver.activity.SplashScreen”,“appium:appPackage”:“com.shohoz.driver”,“appium:deviceName”:“noki”,“platformName”:“android”,“appium:platformVersion”:“9”},“firstMatch”:[{}]}}

[W3C] Calling AppiumDriver.createSession() with args: [{“appActivity”:“com.shohoz.driver.activity.SplashScreen”,“appPackage”:“com.shohoz.driver”,“platformName”:“Android”,“deviceName”:“noki”,“platformVersion”:“9”},null,{“alwaysMatch”:{“appium:appActivity”:“com.shohoz.driver.activity.SplashScreen”,“appium:appPackage”:“com.shohoz.driver”,“appium:deviceName”:“noki”,“platformName”:“android”,“appium:platformVersion”:“9”},“firstMatch”:[{}]}]

[BaseDriver] Event ‘newSessionRequested’ logged at 1553406275696 (11:44:35 GMT+0600 (Bangladesh Standard Time))

[Appium] DeprecationWarning: ‘automationName’ capability was not provided. Future versions of Appium will require ‘automationName’ capability to be set for Android sessions.

[Appium] Setting automation to ‘UiAutomator1’.

[Appium] Consider setting ‘automationName’ capability to ‘UiAutomator2’ on Android >= 6, since UIAutomator1 framework is not maintained anymore by the OS vendor.

[Appium] Creating new AndroidDriver (v4.8.0) session

[Appium] Capabilities:

[Appium] platformName: android

[Appium] appActivity: com.shohoz.driver.activity.SplashScreen

[Appium] appPackage: com.shohoz.driver

[Appium] deviceName: noki

[Appium] platformVersion: 9

[BaseDriver] W3C capabilities {“alwaysMatch”:{"platformNa… and MJSONWP desired capabilities {“appActivity”:"com.shohoz… were provided

[BaseDriver] Creating session with W3C capabilities: {“alwaysMatch”:{"platformNa…

[BaseDriver] Session created with session id: 0cec276b-7155-4361-92cd-343265750503

[AndroidDriver] Java version is: 1.8.0_201

[ADB] Checking whether adb is present

[ADB] Found 1 ‘build-tools’ folders under ‘C:\Users\Tasnim\AppData\Local\Android\Sdk’ (newest first):

[ADB] C:/Users/Tasnim/AppData/Local/Android/Sdk/build-tools/28.0.3

[ADB] Using adb.exe from C:\Users\Tasnim\AppData\Local\Android\Sdk\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 ‘9’

[ADB] Setting device id to 67c111fe0305

[ADB] Getting device platform version

[ADB] Running ‘C:\Users\Tasnim\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 67c111fe0305 shell getprop ro.build.version.release’

[ADB] Current device property ‘ro.build.version.release’: 9

[AndroidDriver] Using device: 67c111fe0305

[ADB] Setting device id to 67c111fe0305

[ADB] Running ‘C:\Users\Tasnim\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 67c111fe0305 shell getprop ro.build.version.sdk’

[ADB] Current device property ‘ro.build.version.sdk’: 28

[ADB] Device API level: 28

[AndroidDriver] Consider setting ‘automationName’ capability to ‘uiautomator2’ on Android >= 6, since UIAutomator framework is not maintained anymore by the OS vendor.

[AndroidDriver] App file was not listed, instead we’re going to run com.shohoz.driver directly on the device

[AndroidDriver] Checking whether package is present on the device

[ADB] Running ‘C:\Users\Tasnim\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 67c111fe0305 shell pm list packages com.shohoz.driver’

[AndroidDriver] Starting Android session

[ADB] Running ‘C:\Users\Tasnim\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 67c111fe0305 wait-for-device’

[ADB] Running ‘C:\Users\Tasnim\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 67c111fe0305 shell echo ping’

[AndroidDriver] Pushing settings apk to device…

[ADB] Getting install status for io.appium.settings

[ADB] Running ‘C:\Users\Tasnim\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 67c111fe0305 shell dumpsys package io.appium.settings’

[ADB] ‘io.appium.settings’ is installed

[ADB] Getting package info for ‘io.appium.settings’

[ADB] Running ‘C:\Users\Tasnim\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 67c111fe0305 shell dumpsys package io.appium.settings’

[ADB] Checking whether aapt is present

[ADB] Using aapt.exe from C:\Users\Tasnim\AppData\Local\Android\Sdk\build-tools\28.0.3\aapt.exe

[ADB] The version name of the installed ‘io.appium.settings’ is greater or equal to the application version name (‘2.14.0’ >= ‘2.14.0’)

[ADB] There is no need to install/upgrade ‘C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk’

[ADB] Getting IDs of all ‘io.appium.settings’ processes

[ADB] Running ‘C:\Users\Tasnim\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 67c111fe0305 shell ‘pgrep --help; echo $?’’

[ADB] Running ‘C:\Users\Tasnim\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 67c111fe0305 shell pgrep -f ^io\.appium\.settings$’

[AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.

[ADB] Running ‘C:\Users\Tasnim\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 67c111fe0305 shell appops set io.appium.settings android:mock_location allow’

[Logcat] Starting logcat capture

[ADB] Getting device platform version

[ADB] Running ‘C:\Users\Tasnim\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 67c111fe0305 shell getprop ro.build.version.release’

[ADB] Current device property ‘ro.build.version.release’: 9

[ADB] Running ‘C:\Users\Tasnim\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 67c111fe0305 shell wm size’

[ADB] Running ‘C:\Users\Tasnim\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 67c111fe0305 shell getprop ro.product.model’

[ADB] Current device property ‘ro.product.model’: Mi A2 Lite

[ADB] Running ‘C:\Users\Tasnim\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 67c111fe0305 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

[ADB] Getting install status for com.shohoz.driver

[ADB] Running ‘C:\Users\Tasnim\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 67c111fe0305 shell dumpsys package com.shohoz.driver’

[ADB] ‘com.shohoz.driver’ is installed

[ADB] Running ‘C:\Users\Tasnim\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 67c111fe0305 shell am force-stop com.shohoz.driver’

[ADB] Running ‘C:\Users\Tasnim\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 67c111fe0305 shell pm clear com.shohoz.driver’

[AndroidDriver] Performed fast reset on the installed ‘com.shohoz.driver’ application (stop and clear)

[AndroidBootstrap] Watching for bootstrap disconnect

[ADB] Forwarding system: 200 to device: 4724

[ADB] Running ‘C:\Users\Tasnim\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 67c111fe0305 forward tcp:200 tcp:4724’

[UiAutomator] Starting UiAutomator

[UiAutomator] Moving to state ‘starting’

[UiAutomator] Parsing uiautomator jar

[UiAutomator] Found jar name: ‘AppiumBootstrap.jar’

[ADB] Running ‘C:\Users\Tasnim\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 67c111fe0305 push ‘C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-android-driver\bootstrap\bin\AppiumBootstrap.jar’ /data/local/tmp/’

[ADB] Attempting to kill all uiautomator processes

[ADB] Getting IDs of all ‘uiautomator’ processes

[ADB] Running ‘C:\Users\Tasnim\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 67c111fe0305 shell pgrep -f ^uiautomator$’

[ADB] No ‘uiautomator’ process has been found

[UiAutomator] Starting UIAutomator

[ADB] Creating ADB subprocess with args: ["-P",5037,"-s",“67c111fe0305”,“shell”,“uiautomator”,“runtest”,“AppiumBootstrap.jar”,"-c",“io.appium.android.bootstrap.Bootstrap”,"-e",“pkg”,“com.shohoz.driver”,"-e",“disableAndroidWatchers”,false,"-e",“acceptSslCerts”,false]

[UiAutomator] Moving to state ‘online’

[AndroidBootstrap] Android bootstrap socket is now connected

[ADB] Running ‘C:\Users\Tasnim\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 67c111fe0305 shell dumpsys window’

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] json loading complete.

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Registered crash watchers.

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Client connected

[AndroidDriver] Screen already unlocked, doing nothing

[ADB] Running ‘C:\Users\Tasnim\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 67c111fe0305 shell am start -W -n com.shohoz.driver/com.shohoz.driver.activity.SplashScreen -S’

[Appium] New AndroidDriver session created successfully, session 0cec276b-7155-4361-92cd-343265750503 added to master session list

[BaseDriver] Event ‘newSessionStarted’ logged at 1553406281906 (11:44:41 GMT+0600 (Bangladesh Standard Time))

[W3C (0cec276b)] Cached the protocol value ‘W3C’ for the new session 0cec276b-7155-4361-92cd-343265750503

[W3C (0cec276b)] Responding to client with driver.createSession() result: {“capabilities”:{“platform”:“LINUX”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“platformName”:“android”,“appActivity”:“com.shohoz.driver.activity.SplashScreen”,“appPackage”:“com.shohoz.driver”,“deviceName”:“noki”,“platformVersion”:“9”},“platformName”:“android”,“appActivity”:“com.shohoz.driver.activity.SplashScreen”,“appPackage”:“com.shohoz.driver”,“deviceName”:“67c111fe0305”,“platformVersion”:“9”,“deviceUDID”:“67c111fe0305”,“deviceScreenSize”:“1080x2280”,“deviceModel”:“Mi A2 Lite”,“deviceManufacturer”:“Xiaomi”}}

[HTTP] <-- POST /wd/hub/session 200 6215 ms - 721

[HTTP]

[HTTP] --> GET /wd/hub/session/0cec276b-7155-4361-92cd-343265750503

[HTTP] {}

[W3C (0cec276b)] Calling AppiumDriver.getSession() with args: [“0cec276b-7155-4361-92cd-343265750503”]

[W3C (0cec276b)] Responding to client with driver.getSession() result: {“platform”:“LINUX”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“platformName”:“android”,“appActivity”:“com.shohoz.driver.activity.SplashScreen”,“appPackage”:“com.shohoz.driver”,“deviceName”:“noki”,“platformVersion”:“9”},“platformName”:“android”,“appActivity”:“com.shohoz.driver.activity.SplashScreen”,“appPackage”:“com.shohoz.driver”,“deviceName”:“67c111fe0305”,“platformVersion”:“9”,“deviceUDID”:“67c111fe0305”,“deviceScreenSize”:“1080x2280”,“deviceModel”:“Mi A2 Lite”,“deviceManufacturer”:“Xiaomi”}

[HTTP] <-- GET /wd/hub/session/0cec276b-7155-4361-92cd-343265750503 200 13 ms - 653

[HTTP]

[HTTP] --> GET /wd/hub/session/0cec276b-7155-4361-92cd-343265750503

[HTTP] {}

[W3C (0cec276b)] Calling AppiumDriver.getSession() with args: [“0cec276b-7155-4361-92cd-343265750503”]

[W3C (0cec276b)] Responding to client with driver.getSession() result: {“platform”:“LINUX”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“platformName”:“android”,“appActivity”:“com.shohoz.driver.activity.SplashScreen”,“appPackage”:“com.shohoz.driver”,“deviceName”:“noki”,“platformVersion”:“9”},“platformName”:“android”,“appActivity”:“com.shohoz.driver.activity.SplashScreen”,“appPackage”:“com.shohoz.driver”,“deviceName”:“67c111fe0305”,“platformVersion”:“9”,“deviceUDID”:“67c111fe0305”,“deviceScreenSize”:“1080x2280”,“deviceModel”:“Mi A2 Lite”,“deviceManufacturer”:“Xiaomi”}

[HTTP] <-- GET /wd/hub/session/0cec276b-7155-4361-92cd-343265750503 200 2 ms - 653

[HTTP]

[HTTP] --> POST /wd/hub/session/0cec276b-7155-4361-92cd-343265750503/element

[HTTP] {“using”:“id”,“value”:“com.android.packageinstaller:id/permission_allow_button”}

[W3C (0cec276b)] Calling AppiumDriver.findElement() with args: [“id”,“com.android.packageinstaller:id/permission_allow_button”,“0cec276b-7155-4361-92cd-343265750503”]

[BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator

[BaseDriver] Waiting up to 0 ms for condition

[AndroidBootstrap] Sending command to android: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“id”,“selector”:“com.android.packageinstaller:id/permission_allow_button”,“context”:"",“multiple”:false}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“id”,“selector”:“com.android.packageinstaller:id/permission_allow_button”,“context”:"",“multiple”:false}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding ‘com.android.packageinstaller:id/permission_allow_button’ using ‘ID’ with the contextId: ‘’ multiple: false

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=com.android.packageinstaller:id/permission_allow_button]

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {“status”:0,“value”:{“ELEMENT”:“1”}}

[AndroidBootstrap] Received command result from bootstrap

[W3C (0cec276b)] Responding to client with driver.findElement() result: {“element-6066-11e4-a52e-4f735466cecf”:“1”,“ELEMENT”:“1”}

[HTTP] <-- POST /wd/hub/session/0cec276b-7155-4361-92cd-343265750503/element 200 380 ms - 67

[HTTP]

[HTTP] --> POST /wd/hub/session/0cec276b-7155-4361-92cd-343265750503/element/1/click

[HTTP] {“id”:“1”}

[W3C (0cec276b)] Calling AppiumDriver.click() with args: [“1”,“0cec276b-7155-4361-92cd-343265750503”]

[AndroidBootstrap] Sending command to android: {“cmd”:“action”,“action”:“element:click”,“params”:{“elementId”:“1”}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“action”,“action”:“element:click”,“params”:{“elementId”:“1”}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: click

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {“status”:0,“value”:true}

[AndroidBootstrap] Received command result from bootstrap

[W3C (0cec276b)] Responding to client with driver.click() result: true

[HTTP] <-- POST /wd/hub/session/0cec276b-7155-4361-92cd-343265750503/element/1/click 200 337 ms - 14

[HTTP]

[HTTP] --> POST /wd/hub/session/0cec276b-7155-4361-92cd-343265750503/element

[HTTP] {“using”:“id”,“value”:“com.android.packageinstaller:id/permission_allow_button”}

[W3C (0cec276b)] Calling AppiumDriver.findElement() with args: [“id”,“com.android.packageinstaller:id/permission_allow_button”,“0cec276b-7155-4361-92cd-343265750503”]

[BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator

[BaseDriver] Waiting up to 0 ms for condition

[AndroidBootstrap] Sending command to android: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“id”,“selector”:“com.android.packageinstaller:id/permission_allow_button”,“context”:"",“multiple”:false}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“id”,“selector”:“com.android.packageinstaller:id/permission_allow_button”,“context”:"",“multiple”:false}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding ‘com.android.packageinstaller:id/permission_allow_button’ using ‘ID’ with the contextId: ‘’ multiple: false

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=com.android.packageinstaller:id/permission_allow_button]

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {“status”:0,“value”:{“ELEMENT”:“2”}}

[AndroidBootstrap] Received command result from bootstrap

[W3C (0cec276b)] Responding to client with driver.findElement() result: {“element-6066-11e4-a52e-4f735466cecf”:“2”,“ELEMENT”:“2”}

[HTTP] <-- POST /wd/hub/session/0cec276b-7155-4361-92cd-343265750503/element 200 590 ms - 67

[HTTP]

[HTTP] --> POST /wd/hub/session/0cec276b-7155-4361-92cd-343265750503/element/2/click

[HTTP] {“id”:“2”}

[W3C (0cec276b)] Calling AppiumDriver.click() with args: [“2”,“0cec276b-7155-4361-92cd-343265750503”]

[AndroidBootstrap] Sending command to android: {“cmd”:“action”,“action”:“element:click”,“params”:{“elementId”:“2”}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“action”,“action”:“element:click”,“params”:{“elementId”:“2”}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: click

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {“status”:0,“value”:true}

[AndroidBootstrap] Received command result from bootstrap

[W3C (0cec276b)] Responding to client with driver.click() result: true

[HTTP] <-- POST /wd/hub/session/0cec276b-7155-4361-92cd-343265750503/element/2/click 200 3154 ms - 14

[HTTP]

[HTTP] --> POST /wd/hub/session/0cec276b-7155-4361-92cd-343265750503/element

[HTTP] {“using”:“xpath”,“value”:"//*[@text=‘ENGLISH’]"}

[W3C (0cec276b)] Calling AppiumDriver.findElement() with args: [“xpath”,"//*[@text=‘ENGLISH’]",“0cec276b-7155-4361-92cd-343265750503”]

[BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator

[BaseDriver] Waiting up to 0 ms for condition

[AndroidBootstrap] Sending command to android: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“xpath”,“selector”:"//*[@text=‘ENGLISH’]",“context”:"",“multiple”:false}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“xpath”,“selector”:"//*[@text=‘ENGLISH’]",“context”:"",“multiple”:false}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding ‘//*[@text=‘ENGLISH’]’ using ‘XPATH’ with the contextId: ‘’ multiple: false

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[CLASS=android.widget.Button, INSTANCE=0]

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {“status”:0,“value”:{“ELEMENT”:“3”}}

[AndroidBootstrap] Received command result from bootstrap

[W3C (0cec276b)] Responding to client with driver.findElement() result: {“element-6066-11e4-a52e-4f735466cecf”:“3”,“ELEMENT”:“3”}

[HTTP] <-- POST /wd/hub/session/0cec276b-7155-4361-92cd-343265750503/element 200 3113 ms - 67

[HTTP]

[HTTP] --> POST /wd/hub/session/0cec276b-7155-4361-92cd-343265750503/element/3/click

[HTTP] {“id”:“3”}

[W3C (0cec276b)] Calling AppiumDriver.click() with args: [“3”,“0cec276b-7155-4361-92cd-343265750503”]

[AndroidBootstrap] Sending command to android: {“cmd”:“action”,“action”:“element:click”,“params”:{“elementId”:“3”}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“action”,“action”:“element:click”,“params”:{“elementId”:“3”}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: click

[AndroidBootstrap] Received command result from bootstrap

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {“status”:0,“value”:true}

[W3C (0cec276b)] Responding to client with driver.click() result: true

[HTTP] <-- POST /wd/hub/session/0cec276b-7155-4361-92cd-343265750503/element/3/click 200 730 ms - 14

[HTTP]

[HTTP] --> POST /wd/hub/session/0cec276b-7155-4361-92cd-343265750503/element

[HTTP] {“using”:“id”,“value”:“com.shohoz.driver:id/mobile_no”}

[W3C (0cec276b)] Calling AppiumDriver.findElement() with args: [“id”,“com.shohoz.driver:id/mobile_no”,“0cec276b-7155-4361-92cd-343265750503”]

[BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator

[BaseDriver] Waiting up to 0 ms for condition

[AndroidBootstrap] Sending command to android: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“id”,“selector”:“com.shohoz.driver:id/mobile_no”,“context”:"",“multiple”:false}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“id”,“selector”:“com.shohoz.driver:id/mobile_no”,“context”:"",“multiple”:false}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding ‘com.shohoz.driver:id/mobile_no’ using ‘ID’ with the contextId: ‘’ multiple: false

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=com.shohoz.driver:id/mobile_no]

[AndroidBootstrap] Received command result from bootstrap

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {“status”:0,“value”:{“ELEMENT”:“4”}}

[W3C (0cec276b)] Responding to client with driver.findElement() result: {“element-6066-11e4-a52e-4f735466cecf”:“4”,“ELEMENT”:“4”}

[HTTP] <-- POST /wd/hub/session/0cec276b-7155-4361-92cd-343265750503/element 200 504 ms - 67

[HTTP]

[HTTP] --> POST /wd/hub/session/0cec276b-7155-4361-92cd-343265750503/element/4/value

[HTTP] {“id”:“4”,“text”:“01645252781”,“value”:[“0”,“1”,“6”,“4”,“5”,“2”,“5”,“2”,“7”,“8”,“1”]}

[W3C (0cec276b)] Calling AppiumDriver.setValue() with args: [[“0”,“1”,“6”,“4”,“5”,“2”,“5”,“2”,“7”,“8”,“1”],“4”,“0cec276b-7155-4361-92cd-343265750503”]

[AndroidBootstrap] Sending command to android: {“cmd”:“action”,“action”:“element:setText”,“params”:{“elementId”:“4”,“text”:“01645252781”,“replace”:false}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“action”,“action”:“element:setText”,“params”:{“elementId”:“4”,“text”:“01645252781”,“replace”:false}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: setText

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using element passed in: 4

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Attempting to clear using UiObject.clearText().

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Text remains after clearing, but it appears to be hint text.

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Text not cleared. Assuming remainder is hint text.

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Sending plain text to element: 01645252781

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {“status”:0,“value”:true}

[AndroidBootstrap] Received command result from bootstrap

[W3C (0cec276b)] Responding to client with driver.setValue() result: true

[HTTP] <-- POST /wd/hub/session/0cec276b-7155-4361-92cd-343265750503/element/4/value 200 5418 ms - 14

[HTTP]

[HTTP] --> POST /wd/hub/session/0cec276b-7155-4361-92cd-343265750503/element

[HTTP] {“using”:“id”,“value”:“com.shohoz.driver:id/button_next”}

[W3C (0cec276b)] Calling AppiumDriver.findElement() with args: [“id”,“com.shohoz.driver:id/button_next”,“0cec276b-7155-4361-92cd-343265750503”]

[BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator

[BaseDriver] Waiting up to 0 ms for condition

[AndroidBootstrap] Sending command to android: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“id”,“selector”:“com.shohoz.driver:id/button_next”,“context”:"",“multiple”:false}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“id”,“selector”:“com.shohoz.driver:id/button_next”,“context”:"",“multiple”:false}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding ‘com.shohoz.driver:id/button_next’ using ‘ID’ with the contextId: ‘’ multiple: false

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=com.shohoz.driver:id/button_next]

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {“status”:0,“value”:{“ELEMENT”:“5”}}

[AndroidBootstrap] Received command result from bootstrap

[W3C (0cec276b)] Responding to client with driver.findElement() result: {“element-6066-11e4-a52e-4f735466cecf”:“5”,“ELEMENT”:“5”}

[HTTP] <-- POST /wd/hub/session/0cec276b-7155-4361-92cd-343265750503/element 200 525 ms - 67

[HTTP]

[HTTP] --> POST /wd/hub/session/0cec276b-7155-4361-92cd-343265750503/element/5/click

[HTTP] {“id”:“5”}

[W3C (0cec276b)] Calling AppiumDriver.click() with args: [“5”,“0cec276b-7155-4361-92cd-343265750503”]

[AndroidBootstrap] Sending command to android: {“cmd”:“action”,“action”:“element:click”,“params”:{“elementId”:“5”}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“action”,“action”:“element:click”,“params”:{“elementId”:“5”}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: click

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {“status”:0,“value”:true}

[AndroidBootstrap] Received command result from bootstrap

[W3C (0cec276b)] Responding to client with driver.click() result: true

[HTTP] <-- POST /wd/hub/session/0cec276b-7155-4361-92cd-343265750503/element/5/click 200 1098 ms - 14

[HTTP]

[HTTP] --> POST /wd/hub/session/0cec276b-7155-4361-92cd-343265750503/element

[HTTP] {“using”:“id”,“value”:“com.shohoz.driver:id/password”}

[W3C (0cec276b)] Calling AppiumDriver.findElement() with args: [“id”,“com.shohoz.driver:id/password”,“0cec276b-7155-4361-92cd-343265750503”]

[BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator

[BaseDriver] Waiting up to 0 ms for condition

[AndroidBootstrap] Sending command to android: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“id”,“selector”:“com.shohoz.driver:id/password”,“context”:"",“multiple”:false}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“id”,“selector”:“com.shohoz.driver:id/password”,“context”:"",“multiple”:false}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding ‘com.shohoz.driver:id/password’ using ‘ID’ with the contextId: ‘’ multiple: false

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=com.shohoz.driver:id/password]

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {“status”:0,“value”:{“ELEMENT”:“6”}}

[AndroidBootstrap] Received command result from bootstrap

[W3C (0cec276b)] Responding to client with driver.findElement() result: {“element-6066-11e4-a52e-4f735466cecf”:“6”,“ELEMENT”:“6”}

[HTTP] <-- POST /wd/hub/session/0cec276b-7155-4361-92cd-343265750503/element 200 601 ms - 67

[HTTP]

[HTTP] --> POST /wd/hub/session/0cec276b-7155-4361-92cd-343265750503/element/6/value

[HTTP] {“id”:“6”,“text”:“123456”,“value”:[“1”,“2”,“3”,“4”,“5”,“6”]}

[W3C (0cec276b)] Calling AppiumDriver.setValue() with args: [[“1”,“2”,“3”,“4”,“5”,“6”],“6”,“0cec276b-7155-4361-92cd-343265750503”]

[AndroidBootstrap] Sending command to android: {“cmd”:“action”,“action”:“element:setText”,“params”:{“elementId”:“6”,“text”:“123456”,“replace”:false}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“action”,“action”:“element:setText”,“params”:{“elementId”:“6”,“text”:“123456”,“replace”:false}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: setText

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using element passed in: 6

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Attempting to clear using UiObject.clearText().

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Text remains after clearing, but it appears to be hint text.

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Text not cleared. Assuming remainder is hint text.

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Sending plain text to element: 123456

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {“status”:0,“value”:true}

[AndroidBootstrap] Received command result from bootstrap

[W3C (0cec276b)] Responding to client with driver.setValue() result: true

[HTTP] <-- POST /wd/hub/session/0cec276b-7155-4361-92cd-343265750503/element/6/value 200 5542 ms - 14

[HTTP]

[HTTP] --> POST /wd/hub/session/0cec276b-7155-4361-92cd-343265750503/element

[HTTP] {“using”:“id”,“value”:“com.shohoz.driver:id/button_next”}

[W3C (0cec276b)] Calling AppiumDriver.findElement() with args: [“id”,“com.shohoz.driver:id/button_next”,“0cec276b-7155-4361-92cd-343265750503”]

[BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator

[BaseDriver] Waiting up to 0 ms for condition

[AndroidBootstrap] Sending command to android: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“id”,“selector”:“com.shohoz.driver:id/button_next”,“context”:"",“multiple”:false}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“id”,“selector”:“com.shohoz.driver:id/button_next”,“context”:"",“multiple”:false}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding ‘com.shohoz.driver:id/button_next’ using ‘ID’ with the contextId: ‘’ multiple: false

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=com.shohoz.driver:id/button_next]

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {“status”:0,“value”:{“ELEMENT”:“7”}}

[AndroidBootstrap] Received command result from bootstrap

[W3C (0cec276b)] Responding to client with driver.findElement() result: {“element-6066-11e4-a52e-4f735466cecf”:“7”,“ELEMENT”:“7”}

[HTTP] <-- POST /wd/hub/session/0cec276b-7155-4361-92cd-343265750503/element 200 502 ms - 67

[HTTP]

[HTTP] --> POST /wd/hub/session/0cec276b-7155-4361-92cd-343265750503/element/7/click

[HTTP] {“id”:“7”}

[W3C (0cec276b)] Calling AppiumDriver.click() with args: [“7”,“0cec276b-7155-4361-92cd-343265750503”]

[AndroidBootstrap] Sending command to android: {“cmd”:“action”,“action”:“element:click”,“params”:{“elementId”:“7”}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“action”,“action”:“element:click”,“params”:{“elementId”:“7”}}

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: click

[AndroidBootstrap] Received command result from bootstrap

[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {“status”:0,“value”:true}

[W3C (0cec276b)] Responding to client with driver.click() result: true

[HTTP] <-- POST /wd/hub/session/0cec276b-7155-4361-92cd-343265750503/element/7/click 200 3162 ms - 14

[HTTP]

[HTTP] --> POST /wd/hub/session

[HTTP] {“desiredCapabilities”:{“appActivity”:“com.shohoz.driver.activity.SplashScreen”,“appPackage”:“com.shohoz.driver”,“platformName”:“Android”,“deviceName”:“noki”,“platformVersion”:“9”},“capabilities”:{“alwaysMatch”:{“appium:appActivity”:“com.shohoz.driver.activity.SplashScreen”,“appium:appPackage”:“com.shohoz.driver”,“appium:deviceName”:“noki”,“platformName”:“android”,“appium:platformVersion”:“9”},“firstMatch”:[{}]}}

[W3C] Calling AppiumDriver.createSession() with args: [{“appActivity”:“com.shohoz.driver.activity.SplashScreen”,“appPackage”:“com.shohoz.driver”,“platformName”:“Android”,“deviceName”:“noki”,“platformVersion”:“9”},null,{“alwaysMatch”:{“appium:appActivity”:“com.shohoz.driver.activity.SplashScreen”,“appium:appPackage”:“com.shohoz.driver”,“appium:deviceName”:“noki”,“platformName”:“android”,“appium:platformVersion”:“9”},“firstMatch”:[{}]}]

[BaseDriver] Event ‘newSessionRequested’ logged at 1553406337256 (11:45:37 GMT+0600 (Bangladesh Standard Time))

[Appium] DeprecationWarning: ‘automationName’ capability was not provided. Future versions of Appium will require ‘automationName’ capability to be set for Android sessions.

[Appium] Setting automation to ‘UiAutomator1’.

[Appium] Consider setting ‘automationName’ capability to ‘UiAutomator2’ on Android >= 6, since UIAutomator1 framework is not maintained anymore by the OS vendor.

[Appium] Creating new AndroidDriver (v4.8.0) session

[Appium] Capabilities:

[Appium] platformName: android

[Appium] appActivity: com.shohoz.driver.activity.SplashScreen

[Appium] appPackage: com.shohoz.driver

[Appium] deviceName: noki

[Appium] platformVersion: 9

[Appium] Session override is on. Deleting other 1 active session.

[Appium] Removing session 0cec276b-7155-4361-92cd-343265750503 from our master session list

[AndroidDriver] Shutting down Android driver

[ADB] Running ‘C:\Users\Tasnim\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 67c111fe0305 shell am force-stop com.shohoz.driver’

[ADB] Pressing the HOME button

[ADB] Running ‘C:\Users\Tasnim\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 67c111fe0305 shell input keyevent 3’

[AndroidBootstrap] Sending command to android: {“cmd”:“shutdown”}

[AndroidBootstrap] Received command result from bootstrap

[UiAutomator] Shutting down UiAutomator

[UiAutomator] Moving to state ‘stopping’

[UiAutomator] UiAutomator shut down normally

[UiAutomator] Moving to state ‘stopped’

[ADB] Attempting to kill all uiautomator processes

[ADB] Getting IDs of all ‘uiautomator’ processes

[ADB] Running ‘C:\Users\Tasnim\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 67c111fe0305 shell pgrep -f ^uiautomator$’

[ADB] No ‘uiautomator’ process has been found

[UiAutomator] Moving to state ‘stopped’

[Logcat] Stopping logcat capture