appium / appium-uiautomator2-server

Appium UiAutomator/UiObject2-based server for Android UI automation. This module is used by appium-uiautomator2-driver component
Apache License 2.0
328 stars 232 forks source link

sendkeys method triggers paste clipboard as well #266

Open amrsa1 opened 5 years ago

amrsa1 commented 5 years ago

i have a weird issue im trying to use sendkeys but it triggers paste as well however it working well in different places

` DesiredCapabilities dc = new DesiredCapabilities();

    dc.setCapability(MobileCapabilityType.UDID, "988a164143904e36333130");
    dc.setCapability("unlockType", "password");
    dc.setCapability(MobileCapabilityType.DEVICE_NAME, "Note8");
    dc.setCapability(MobileCapabilityType.PLATFORM_NAME, "Android");
    dc.setCapability(MobileCapabilityType.PLATFORM_VERSION, "9");
    dc.setCapability("automationName", "uiautomator2");
    dc.setCapability(AndroidMobileCapabilityType.APP_PACKAGE, apppackage);
    dc.setCapability(AndroidMobileCapabilityType.APP_ACTIVITY, appactivity);
    dc.setCapability(MobileCapabilityType.NO_RESET, true);
    dc.setCapability(MobileCapabilityType.FULL_RESET, false);
    dc.setCapability(AndroidMobileCapabilityType.PLATFORM_NAME, "Android");

im using elementName.sendkeys("anything") `

KazuCocoa commented 5 years ago

Could you attach the full server log too?

amrsa1 commented 5 years ago

@KazuCocoa

here you are, and there is a screen recording attached for the weird behaviour during sending the text check this link https://ufile.io/rlyqmuvi

` HTTP] --> GET /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df [HTTP] {} [debug] [W3C (8523b74d)] Calling AppiumDriver.getSession() with args: ["8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [W3C (8523b74d)] 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","deviceId":"192.168.30.19:5555","unlockKey":"@0122882435abA","unlockType":"password","appActivity":".common.activity.MusicMainActivity","appPackage":"com.sec.android.app.music","automationName":"uiautomator1","deviceName":"Note8","fullReset":false,"noReset":true,"platformVersion":"9"},"platformName":"android","deviceId":"192.168.30.19:5555","unlockKey":"@0122882435abA","unlockType":"password","appActivity":".common.activity.MusicMainActivity","appPackage":"com.sec.android.app.music","automationName":"uiautomator1","deviceName":"988a1641434e36333130","fullReset":false,"noReset":true,"platformVersion":"9","deviceUDID":"988a1641434e36333130","deviceScreenSize":"1440x2960","deviceModel":"SM-N950F","deviceManufacturer":"samsung"} [HTTP] <-- GET /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df 200 2 ms - 975 [HTTP] [HTTP] --> GET /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df [HTTP] {} [debug] [W3C (8523b74d)] Calling AppiumDriver.getSession() with args: ["8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [W3C (8523b74d)] 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","deviceId":"192.168.30.19:5555","unlockKey":"@0122882435abA","unlockType":"password","appActivity":".common.activity.MusicMainActivity","appPackage":"com.sec.android.app.music","automationName":"uiautomator1","deviceName":"Note8","fullReset":false,"noReset":true,"platformVersion":"9"},"platformName":"android","deviceId":"192.168.30.19:5555","unlockKey":"@0122882435abA","unlockType":"password","appActivity":".common.activity.MusicMainActivity","appPackage":"com.sec.android.app.music","automationName":"uiautomator1","deviceName":"988a1641434e36333130","fullReset":false,"noReset":true,"platformVersion":"9","deviceUDID":"988a1641434e36333130","deviceScreenSize":"1440x2960","deviceModel":"SM-N950F","deviceManufacturer":"samsung"} [HTTP] <-- GET /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df 200 3 ms - 975 [HTTP] [HTTP] --> GET /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df [HTTP] {} [debug] [W3C (8523b74d)] Calling AppiumDriver.getSession() with args: ["8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [W3C (8523b74d)] 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","deviceId":"192.168.30.19:5555","unlockKey":"@0122882435abA","unlockType":"password","appActivity":".common.activity.MusicMainActivity","appPackage":"com.sec.android.app.music","automationName":"uiautomator1","deviceName":"Note8","fullReset":false,"noReset":true,"platformVersion":"9"},"platformName":"android","deviceId":"192.168.30.19:5555","unlockKey":"@0122882435abA","unlockType":"password","appActivity":".common.activity.MusicMainActivity","appPackage":"com.sec.android.app.music","automationName":"uiautomator1","deviceName":"988a1641434e36333130","fullReset":false,"noReset":true,"platformVersion":"9","deviceUDID":"988a1641434e36333130","deviceScreenSize":"1440x2960","deviceModel":"SM-N950F","deviceManufacturer":"samsung"} [HTTP] <-- GET /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df 200 3 ms - 975 [HTTP] [HTTP] --> POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element [HTTP] {"using":"xpath","value":"//android.view.ViewGroup[@content-desc=\"Tracks, Tab 3 of 6\"]/android.widget.TextView"} [debug] [W3C (8523b74d)] Calling AppiumDriver.findElement() with args: ["xpath","//android.view.ViewGroup[@content-desc=\"Tracks, Tab 3 of 6\"]/android.widget.TextView","8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator [debug] [BaseDriver] Waiting up to 0 ms for condition [debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.view.ViewGroup[@content-desc=\"Tracks, Tab 3 of 6\"]/android.widget.TextView","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.view.ViewGroup[@content-desc=\"Tracks, Tab 3 of 6\"]/android.widget.TextView","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding '//android.view.ViewGroup[@content-desc="Tracks, Tab 3 of 6"]/android.widget.TextView' using 'XPATH' with the contextId: '' multiple: false [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[CLASS=android.widget.TextView, INSTANCE=2] [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":{"ELEMENT":"1"}} [debug] [AndroidBootstrap] Received command result from bootstrap [debug] [W3C (8523b74d)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"1","ELEMENT":"1"} [HTTP] <-- POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element 200 558 ms - 67 [HTTP] [HTTP] --> POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element/1/click [HTTP] {"id":"1"} [debug] [W3C (8523b74d)] Calling AppiumDriver.click() with args: ["1","8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"element:click","params":{"elementId":"1"}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"element:click","params":{"elementId":"1"}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: click [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":true} [debug] [AndroidBootstrap] Received command result from bootstrap [debug] [W3C (8523b74d)] Responding to client with driver.click() result: true [HTTP] <-- POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element/1/click 200 169 ms - 14 [HTTP] [HTTP] --> GET /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df [HTTP] {} [debug] [W3C (8523b74d)] Calling AppiumDriver.getSession() with args: ["8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [W3C (8523b74d)] 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","deviceId":"192.168.30.19:5555","unlockKey":"@0122882435abA","unlockType":"password","appActivity":".common.activity.MusicMainActivity","appPackage":"com.sec.android.app.music","automationName":"uiautomator1","deviceName":"Note8","fullReset":false,"noReset":true,"platformVersion":"9"},"platformName":"android","deviceId":"192.168.30.19:5555","unlockKey":"@0122882435abA","unlockType":"password","appActivity":".common.activity.MusicMainActivity","appPackage":"com.sec.android.app.music","automationName":"uiautomator1","deviceName":"988a1641434e36333130","fullReset":false,"noReset":true,"platformVersion":"9","deviceUDID":"988a1641434e36333130","deviceScreenSize":"1440x2960","deviceModel":"SM-N950F","deviceManufacturer":"samsung"} [HTTP] <-- GET /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df 200 3 ms - 975 [HTTP] [HTTP] --> POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element [HTTP] {"using":"xpath","value":"//android.view.ViewGroup[@content-desc=\"Playlists, Tab 2 of 6\"]/android.widget.TextView"} [debug] [W3C (8523b74d)] Calling AppiumDriver.findElement() with args: ["xpath","//android.view.ViewGroup[@content-desc=\"Playlists, Tab 2 of 6\"]/android.widget.TextView","8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator [debug] [BaseDriver] Waiting up to 0 ms for condition [debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.view.ViewGroup[@content-desc=\"Playlists, Tab 2 of 6\"]/android.widget.TextView","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.view.ViewGroup[@content-desc=\"Playlists, Tab 2 of 6\"]/android.widget.TextView","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding '//android.view.ViewGroup[@content-desc="Playlists, Tab 2 of 6"]/android.widget.TextView' using 'XPATH' with the contextId: '' multiple: false [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[CLASS=android.widget.TextView, INSTANCE=1] [debug] [AndroidBootstrap] Received command result from bootstrap [debug] [W3C (8523b74d)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"2","ELEMENT":"2"} [HTTP] <-- POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element 200 1485 ms - 67 [HTTP] [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":{"ELEMENT":"2"}} [HTTP] --> POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element/2/click [HTTP] {"id":"2"} [debug] [W3C (8523b74d)] Calling AppiumDriver.click() with args: ["2","8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"element:click","params":{"elementId":"2"}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"element:click","params":{"elementId":"2"}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: click [debug] [AndroidBootstrap] Received command result from bootstrap [debug] [W3C (8523b74d)] Responding to client with driver.click() result: true [HTTP] <-- POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element/2/click 200 303 ms - 14 [HTTP] [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":true} [HTTP] --> GET /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df [HTTP] {} [debug] [W3C (8523b74d)] Calling AppiumDriver.getSession() with args: ["8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [W3C (8523b74d)] 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","deviceId":"192.168.30.19:5555","unlockKey":"@0122882435abA","unlockType":"password","appActivity":".common.activity.MusicMainActivity","appPackage":"com.sec.android.app.music","automationName":"uiautomator1","deviceName":"Note8","fullReset":false,"noReset":true,"platformVersion":"9"},"platformName":"android","deviceId":"192.168.30.19:5555","unlockKey":"@0122882435abA","unlockType":"password","appActivity":".common.activity.MusicMainActivity","appPackage":"com.sec.android.app.music","automationName":"uiautomator1","deviceName":"988a1641434e36333130","fullReset":false,"noReset":true,"platformVersion":"9","deviceUDID":"988a1641434e36333130","deviceScreenSize":"1440x2960","deviceModel":"SM-N950F","deviceManufacturer":"samsung"} [HTTP] <-- GET /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df 200 3 ms - 975 [HTTP] [HTTP] --> POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element [HTTP] {"using":"-android uiautomator","value":"new UiSelector().text(\"Sport\")"} [debug] [W3C (8523b74d)] Calling AppiumDriver.findElement() with args: ["-android uiautomator","new UiSelector().text(\"Sport\")","8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator [debug] [BaseDriver] Waiting up to 0 ms for condition [debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"-android uiautomator","selector":"new UiSelector().text(\"Sport\")","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"-android uiautomator","selector":"new UiSelector().text(\"Sport\")","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'new UiSelector().text("Sport")' using 'ANDROID_UIAUTOMATOR' with the contextId: '' multiple: false [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Parsing selector: new UiSelector().text("Sport") [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] UiSelector coerce type: class java.lang.String arg: "Sport" [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[TEXT=Sport] [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":{"ELEMENT":"3"}} [debug] [AndroidBootstrap] Received command result from bootstrap [debug] [W3C (8523b74d)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"3","ELEMENT":"3"} [HTTP] <-- POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element 200 855 ms - 67 [HTTP] [HTTP] --> POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element/3/click [HTTP] {"id":"3"} [debug] [W3C (8523b74d)] Calling AppiumDriver.click() with args: ["3","8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"element:click","params":{"elementId":"3"}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"element:click","params":{"elementId":"3"}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: click [debug] [AndroidBootstrap] Received command result from bootstrap [debug] [W3C (8523b74d)] Responding to client with driver.click() result: true [HTTP] <-- POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element/3/click 200 212 ms - 14 [HTTP] [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":true} [HTTP] --> GET /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df [HTTP] {} [debug] [W3C (8523b74d)] Calling AppiumDriver.getSession() with args: ["8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [W3C (8523b74d)] 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","deviceId":"192.168.30.19:5555","unlockKey":"@0122882435abA","unlockType":"password","appActivity":".common.activity.MusicMainActivity","appPackage":"com.sec.android.app.music","automationName":"uiautomator1","deviceName":"Note8","fullReset":false,"noReset":true,"platformVersion":"9"},"platformName":"android","deviceId":"192.168.30.19:5555","unlockKey":"@0122882435abA","unlockType":"password","appActivity":".common.activity.MusicMainActivity","appPackage":"com.sec.android.app.music","automationName":"uiautomator1","deviceName":"988a1641434e36333130","fullReset":false,"noReset":true,"platformVersion":"9","deviceUDID":"988a1641434e36333130","deviceScreenSize":"1440x2960","deviceModel":"SM-N950F","deviceManufacturer":"samsung"} [HTTP] <-- GET /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df 200 3 ms - 975 [HTTP] [HTTP] --> POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element [HTTP] {"using":"xpath","value":"//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']"} [debug] [W3C (8523b74d)] Calling AppiumDriver.findElement() with args: ["xpath","//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']","8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator [debug] [BaseDriver] Waiting up to 0 ms for condition [debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding '//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']' using 'XPATH' with the contextId: '' multiple: false [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Failed to locate element. Clearing Accessibility cache and retrying. [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding '//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']' using 'XPATH' with the contextId: '' multiple: false [debug] [AndroidBootstrap] Received command result from bootstrap [debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":7,"value":"No element found"} [debug] [W3C (8523b74d)] Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters. [debug] [W3C (8523b74d)] at AndroidDriver.helpers.findElOrEls (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/find.js:75:11) [HTTP] <-- POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element 404 1000 ms - 416 [HTTP] Song is not displayed in the playlist [HTTP] --> GET /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df [HTTP] {} [debug] [W3C (8523b74d)] Calling AppiumDriver.getSession() with args: ["8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [W3C (8523b74d)] 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","deviceId":"192.168.30.19:5555","unlockKey":"@0122882435abA","unlockType":"password","appActivity":".common.activity.MusicMainActivity","appPackage":"com.sec.android.app.music","automationName":"uiautomator1","deviceName":"Note8","fullReset":false,"noReset":true,"platformVersion":"9"},"platformName":"android","deviceId":"192.168.30.19:5555","unlockKey":"@0122882435abA","unlockType":"password","appActivity":".common.activity.MusicMainActivity","appPackage":"com.sec.android.app.music","automationName":"uiautomator1","deviceName":"988a1641434e36333130","fullReset":false,"noReset":true,"platformVersion":"9","deviceUDID":"988a1641434e36333130","deviceScreenSize":"1440x2960","deviceModel":"SM-N950F","deviceManufacturer":"samsung"} [HTTP] <-- GET /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df 200 1 ms - 975 [HTTP] [HTTP] --> POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element [HTTP] {"using":"id","value":"com.sec.android.app.music:id/menu_add_tracks"} [debug] [W3C (8523b74d)] Calling AppiumDriver.findElement() with args: ["id","com.sec.android.app.music:id/menu_add_tracks","8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator [debug] [BaseDriver] Waiting up to 0 ms for condition [debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"com.sec.android.app.music:id/menu_add_tracks","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"com.sec.android.app.music:id/menu_add_tracks","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'com.sec.android.app.music:id/menu_add_tracks' using 'ID' with the contextId: '' multiple: false [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=com.sec.android.app.music:id/menu_add_tracks] [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":{"ELEMENT":"4"}} [debug] [AndroidBootstrap] Received command result from bootstrap [debug] [W3C (8523b74d)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"4","ELEMENT":"4"} [HTTP] <-- POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element 200 68 ms - 67 [HTTP] [HTTP] --> POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element/4/click [HTTP] {"id":"4"} [debug] [W3C (8523b74d)] Calling AppiumDriver.click() with args: ["4","8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"element:click","params":{"elementId":"4"}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"element:click","params":{"elementId":"4"}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: click [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":true} [debug] [AndroidBootstrap] Received command result from bootstrap [debug] [W3C (8523b74d)] Responding to client with driver.click() result: true [HTTP] <-- POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element/4/click 200 646 ms - 14 [HTTP] [HTTP] --> GET /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df [HTTP] {} [debug] [W3C (8523b74d)] Calling AppiumDriver.getSession() with args: ["8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [W3C (8523b74d)] 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","deviceId":"192.168.30.19:5555","unlockKey":"@0122882435abA","unlockType":"password","appActivity":".common.activity.MusicMainActivity","appPackage":"com.sec.android.app.music","automationName":"uiautomator1","deviceName":"Note8","fullReset":false,"noReset":true,"platformVersion":"9"},"platformName":"android","deviceId":"192.168.30.19:5555","unlockKey":"@0122882435abA","unlockType":"password","appActivity":".common.activity.MusicMainActivity","appPackage":"com.sec.android.app.music","automationName":"uiautomator1","deviceName":"988a1641434e36333130","fullReset":false,"noReset":true,"platformVersion":"9","deviceUDID":"988a1641434e36333130","deviceScreenSize":"1440x2960","deviceModel":"SM-N950F","deviceManufacturer":"samsung"} [HTTP] <-- GET /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df 200 3 ms - 975 [HTTP] [HTTP] --> POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element [HTTP] {"using":"xpath","value":"//android.widget.TextView[@content-desc=\"Folders, Tab 4 of 4\"]"} [debug] [W3C (8523b74d)] Calling AppiumDriver.findElement() with args: ["xpath","//android.widget.TextView[@content-desc=\"Folders, Tab 4 of 4\"]","8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator [debug] [BaseDriver] Waiting up to 0 ms for condition [debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.widget.TextView[@content-desc=\"Folders, Tab 4 of 4\"]","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.widget.TextView[@content-desc=\"Folders, Tab 4 of 4\"]","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding '//android.widget.TextView[@content-desc="Folders, Tab 4 of 4"]' using 'XPATH' with the contextId: '' multiple: false [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[CLASS=android.widget.TextView, INSTANCE=5] [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":{"ELEMENT":"5"}} [debug] [AndroidBootstrap] Received command result from bootstrap [debug] [W3C (8523b74d)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"5","ELEMENT":"5"} [HTTP] <-- POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element 200 939 ms - 67 [HTTP] [HTTP] --> POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element/5/click [HTTP] {"id":"5"} [debug] [W3C (8523b74d)] Calling AppiumDriver.click() with args: ["5","8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"element:click","params":{"elementId":"5"}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"element:click","params":{"elementId":"5"}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: click [debug] [AndroidBootstrap] Received command result from bootstrap [debug] [W3C (8523b74d)] Responding to client with driver.click() result: true [HTTP] <-- POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element/5/click 200 234 ms - 14 [HTTP] [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":true} [HTTP] --> GET /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df [HTTP] {} [debug] [W3C (8523b74d)] Calling AppiumDriver.getSession() with args: ["8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [W3C (8523b74d)] 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","deviceId":"192.168.30.19:5555","unlockKey":"@0122882435abA","unlockType":"password","appActivity":".common.activity.MusicMainActivity","appPackage":"com.sec.android.app.music","automationName":"uiautomator1","deviceName":"Note8","fullReset":false,"noReset":true,"platformVersion":"9"},"platformName":"android","deviceId":"192.168.30.19:5555","unlockKey":"@0122882435abA","unlockType":"password","appActivity":".common.activity.MusicMainActivity","appPackage":"com.sec.android.app.music","automationName":"uiautomator1","deviceName":"988a1641434e36333130","fullReset":false,"noReset":true,"platformVersion":"9","deviceUDID":"988a1641434e36333130","deviceScreenSize":"1440x2960","deviceModel":"SM-N950F","deviceManufacturer":"samsung"} [HTTP] <-- GET /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df 200 3 ms - 975 [HTTP] [HTTP] --> POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element [HTTP] {"using":"-android uiautomator","value":"new UiSelector().text(\"Download\")"} [debug] [W3C (8523b74d)] Calling AppiumDriver.findElement() with args: ["-android uiautomator","new UiSelector().text(\"Download\")","8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator [debug] [BaseDriver] Waiting up to 0 ms for condition [debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"-android uiautomator","selector":"new UiSelector().text(\"Download\")","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"-android uiautomator","selector":"new UiSelector().text(\"Download\")","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'new UiSelector().text("Download")' using 'ANDROID_UIAUTOMATOR' with the contextId: '' multiple: false [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Parsing selector: new UiSelector().text("Download") [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] UiSelector coerce type: class java.lang.String arg: "Download" [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[TEXT=Download] [debug] [AndroidBootstrap] Received command result from bootstrap [debug] [W3C (8523b74d)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"6","ELEMENT":"6"} [HTTP] <-- POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element 200 948 ms - 67 [HTTP] [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":{"ELEMENT":"6"}} [HTTP] --> POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element/6/click [HTTP] {"id":"6"} [debug] [W3C (8523b74d)] Calling AppiumDriver.click() with args: ["6","8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"element:click","params":{"elementId":"6"}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"element:click","params":{"elementId":"6"}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: click [debug] [AndroidBootstrap] Received command result from bootstrap [debug] [W3C (8523b74d)] Responding to client with driver.click() result: true [HTTP] <-- POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element/6/click 200 227 ms - 14 [HTTP] [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":true} [HTTP] --> GET /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df [HTTP] {} [debug] [W3C (8523b74d)] Calling AppiumDriver.getSession() with args: ["8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [W3C (8523b74d)] 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","deviceId":"192.168.30.19:5555","unlockKey":"@0122882435abA","unlockType":"password","appActivity":".common.activity.MusicMainActivity","appPackage":"com.sec.android.app.music","automationName":"uiautomator1","deviceName":"Note8","fullReset":false,"noReset":true,"platformVersion":"9"},"platformName":"android","deviceId":"192.168.30.19:5555","unlockKey":"@0122882435abA","unlockType":"password","appActivity":".common.activity.MusicMainActivity","appPackage":"com.sec.android.app.music","automationName":"uiautomator1","deviceName":"988a1641434e36333130","fullReset":false,"noReset":true,"platformVersion":"9","deviceUDID":"988a1641434e36333130","deviceScreenSize":"1440x2960","deviceModel":"SM-N950F","deviceManufacturer":"samsung"} [HTTP] <-- GET /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df 200 3 ms - 975 [HTTP] [HTTP] --> POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element [HTTP] {"using":"id","value":"com.sec.android.app.music:id/menu_launch_search"} [debug] [W3C (8523b74d)] Calling AppiumDriver.findElement() with args: ["id","com.sec.android.app.music:id/menu_launch_search","8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator [debug] [BaseDriver] Waiting up to 0 ms for condition [debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"com.sec.android.app.music:id/menu_launch_search","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"com.sec.android.app.music:id/menu_launch_search","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'com.sec.android.app.music:id/menu_launch_search' using 'ID' with the contextId: '' multiple: false [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=com.sec.android.app.music:id/menu_launch_search] [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":{"ELEMENT":"7"}} [debug] [AndroidBootstrap] Received command result from bootstrap [debug] [W3C (8523b74d)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"7","ELEMENT":"7"} [HTTP] <-- POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element 200 851 ms - 67 [HTTP] [HTTP] --> POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element/7/click [HTTP] {"id":"7"} [debug] [W3C (8523b74d)] Calling AppiumDriver.click() with args: ["7","8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"element:click","params":{"elementId":"7"}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"element:click","params":{"elementId":"7"}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: click [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":true} [debug] [AndroidBootstrap] Received command result from bootstrap [debug] [W3C (8523b74d)] Responding to client with driver.click() result: true [HTTP] <-- POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element/7/click 200 533 ms - 14 [HTTP] [HTTP] --> GET /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df [HTTP] {} [debug] [W3C (8523b74d)] Calling AppiumDriver.getSession() with args: ["8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [W3C (8523b74d)] 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","deviceId":"192.168.30.19:5555","unlockKey":"@0122882435abA","unlockType":"password","appActivity":".common.activity.MusicMainActivity","appPackage":"com.sec.android.app.music","automationName":"uiautomator1","deviceName":"Note8","fullReset":false,"noReset":true,"platformVersion":"9"},"platformName":"android","deviceId":"192.168.30.19:5555","unlockKey":"@0122882435abA","unlockType":"password","appActivity":".common.activity.MusicMainActivity","appPackage":"com.sec.android.app.music","automationName":"uiautomator1","deviceName":"988a1641434e36333130","fullReset":false,"noReset":true,"platformVersion":"9","deviceUDID":"988a1641434e36333130","deviceScreenSize":"1440x2960","deviceModel":"SM-N950F","deviceManufacturer":"samsung"} [HTTP] <-- GET /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df 200 3 ms - 975 [HTTP] [HTTP] --> POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element [HTTP] {"using":"id","value":"com.sec.android.app.music:id/search_src_text"} [debug] [W3C (8523b74d)] Calling AppiumDriver.findElement() with args: ["id","com.sec.android.app.music:id/search_src_text","8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator [debug] [BaseDriver] Waiting up to 0 ms for condition [debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"com.sec.android.app.music:id/search_src_text","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"com.sec.android.app.music:id/search_src_text","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'com.sec.android.app.music:id/search_src_text' using 'ID' with the contextId: '' multiple: false [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=com.sec.android.app.music:id/search_src_text] [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":{"ELEMENT":"8"}} [debug] [AndroidBootstrap] Received command result from bootstrap [debug] [W3C (8523b74d)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"8","ELEMENT":"8"} [HTTP] <-- POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element 200 948 ms - 67 [HTTP] [HTTP] --> POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element/8/value [HTTP] {"id":"8","text":"misha","value":["m","i","s","h","a"]} [debug] [W3C (8523b74d)] Calling AppiumDriver.setValue() with args: [["m","i","s","h","a"],"8","8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"element:setText","params":{"elementId":"8","text":"misha","replace":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"element:setText","params":{"elementId":"8","text":"misha","replace":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: setText [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using element passed in: 8 [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Attempting to clear using UiObject.clearText(). [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Clearing text not successful. Attempting to clear by selecting all and deleting. [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Text remains after clearing, but it appears to be hint text. [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Text not cleared. Assuming remainder is hint text. [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Sending plain text to element: misha [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":true} [debug] [AndroidBootstrap] Received command result from bootstrap [debug] [W3C (8523b74d)] Responding to client with driver.setValue() result: true [HTTP] <-- POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element/8/value 200 12679 ms - 14 [HTTP] [HTTP] --> GET /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df [HTTP] {} [debug] [W3C (8523b74d)] Calling AppiumDriver.getSession() with args: ["8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [W3C (8523b74d)] 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","deviceId":"192.168.30.19:5555","unlockKey":"@0122882435abA","unlockType":"password","appActivity":".common.activity.MusicMainActivity","appPackage":"com.sec.android.app.music","automationName":"uiautomator1","deviceName":"Note8","fullReset":false,"noReset":true,"platformVersion":"9"},"platformName":"android","deviceId":"192.168.30.19:5555","unlockKey":"@0122882435abA","unlockType":"password","appActivity":".common.activity.MusicMainActivity","appPackage":"com.sec.android.app.music","automationName":"uiautomator1","deviceName":"988a1641434e36333130","fullReset":false,"noReset":true,"platformVersion":"9","deviceUDID":"988a1641434e36333130","deviceScreenSize":"1440x2960","deviceModel":"SM-N950F","deviceManufacturer":"samsung"} [HTTP] <-- GET /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df 200 3 ms - 975 [HTTP] [HTTP] --> POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element [HTTP] {"using":"xpath","value":"//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']"} [debug] [W3C (8523b74d)] Calling AppiumDriver.findElement() with args: ["xpath","//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']","8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator [debug] [BaseDriver] Waiting up to 0 ms for condition [debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding '//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']' using 'XPATH' with the contextId: '' multiple: false [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Failed to locate element. Clearing Accessibility cache and retrying. [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding '//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']' using 'XPATH' with the contextId: '' multiple: false [debug] [AndroidBootstrap] Received command result from bootstrap [debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":7,"value":"No element found"} [debug] [W3C (8523b74d)] Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters. [debug] [W3C (8523b74d)] at AndroidDriver.helpers.findElOrEls (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/find.js:75:11) [HTTP] <-- POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element 404 115 ms - 416 [HTTP] [HTTP] --> POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element [HTTP] {"using":"xpath","value":"//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']"} [debug] [W3C (8523b74d)] Calling AppiumDriver.findElement() with args: ["xpath","//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']","8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator [debug] [BaseDriver] Waiting up to 0 ms for condition [debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding '//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']' using 'XPATH' with the contextId: '' multiple: false [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Failed to locate element. Clearing Accessibility cache and retrying. [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding '//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']' using 'XPATH' with the contextId: '' multiple: false [debug] [AndroidBootstrap] Received command result from bootstrap [debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":7,"value":"No element found"} [debug] [W3C (8523b74d)] Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters. [debug] [W3C (8523b74d)] at AndroidDriver.helpers.findElOrEls (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/find.js:75:11) [HTTP] <-- POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element 404 124 ms - 416 [HTTP] [HTTP] --> POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element [HTTP] {"using":"xpath","value":"//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']"} [debug] [W3C (8523b74d)] Calling AppiumDriver.findElement() with args: ["xpath","//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']","8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator [debug] [BaseDriver] Waiting up to 0 ms for condition [debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding '//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']' using 'XPATH' with the contextId: '' multiple: false [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Failed to locate element. Clearing Accessibility cache and retrying. [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding '//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']' using 'XPATH' with the contextId: '' multiple: false [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":7,"value":"No element found"} [debug] [AndroidBootstrap] Received command result from bootstrap [debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError [debug] [W3C (8523b74d)] Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters. [debug] [W3C (8523b74d)] at AndroidDriver.helpers.findElOrEls (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/find.js:75:11) [HTTP] <-- POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element 404 112 ms - 416 [HTTP] [HTTP] --> POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element [HTTP] {"using":"xpath","value":"//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']"} [debug] [W3C (8523b74d)] Calling AppiumDriver.findElement() with args: ["xpath","//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']","8523b74d-2d33-4cac-83d3-8a8b616869df"] [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator [debug] [BaseDriver] Waiting up to 0 ms for condition [debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding '//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']' using 'XPATH' with the contextId: '' multiple: false [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Failed to locate element. Clearing Accessibility cache and retrying. [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding '//android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']' using 'XPATH' with the contextId: '' multiple: false [debug] [AndroidBootstrap] Received command result from bootstrap [debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":7,"value":"No element found"} [debug] [W3C (8523b74d)] Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters. [debug] [W3C (8523b74d)] at AndroidDriver.helpers.findElOrEls (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/find.js:75:11) [HTTP] <-- POST /wd/hub/session/8523b74d-2d33-4cac-83d3-8a8b616869df/element 404 110 ms - 416 [HTTP]

org.openqa.selenium.NoSuchElementException: Can't locate an element by this strategy: By.chained({By.xpath: //android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']})

at io.appium.java_client.pagefactory.AppiumElementLocator.findElement(AppiumElementLocator.java:126)
at io.appium.java_client.pagefactory.interceptors.InterceptorOfASingleElement.intercept(InterceptorOfASingleElement.java:59)
at io.appium.java_client.android.AndroidElement$$EnhancerByCGLIB$$b598166c.click(<generated>)
at src.mobile.AppiumPages.DemoOnePage.Verify_user_can_add_and_remove_song(DemoOnePage.java:219)
at src.mobile.AppiumTest.DemoOne.Verify_user_can_add_and_remove_song(DemoOne.java:139)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:583)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
at org.testng.TestRunner.privateRun(TestRunner.java:648)
at org.testng.TestRunner.run(TestRunner.java:505)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415)
at org.testng.SuiteRunner.run(SuiteRunner.java:364)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
at org.testng.TestNG.runSuites(TestNG.java:1049)
at org.testng.TestNG.run(TestNG.java:1017)
at org.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:73)
at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:123)

Caused by: org.openqa.selenium.TimeoutException: Expected condition failed: waiting for io.appium.java_client.pagefactory.AppiumElementLocator$WaitingFunction@3b74ac8 (tried for 1 second(s) with 500 milliseconds interval) at org.openqa.selenium.support.ui.FluentWait.timeoutException(FluentWait.java:304) at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:272) at io.appium.java_client.pagefactory.AppiumElementLocator.waitFor(AppiumElementLocator.java:99) at io.appium.java_client.pagefactory.AppiumElementLocator.findElement(AppiumElementLocator.java:119) ... 28 more Caused by: org.openqa.selenium.NoSuchElementException: Cannot locate an element using By.chained({By.xpath: //android.widget.TextView[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)']}) For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' System info: host: 'WS-MIRELSP-OSX', ip: '192.168.43.219', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.14.4', java.version: '1.8.0_152-release' Driver info: driver.version: AndroidDriver at io.appium.java_client.pagefactory.bys.builder.ByChained.findElement(ByChained.java:74) at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:315) at io.appium.java_client.DefaultGenericMobileDriver.findElement(DefaultGenericMobileDriver.java:58) at io.appium.java_client.AppiumDriver.findElement(AppiumDriver.java:1) at io.appium.java_client.android.AndroidDriver.findElement(AndroidDriver.java:1) at io.appium.java_client.pagefactory.bys.ContentMappedBy.findElement(ContentMappedBy.java:50) at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:315) at io.appium.java_client.DefaultGenericMobileDriver.findElement(DefaultGenericMobileDriver.java:58) at io.appium.java_client.AppiumDriver.findElement(AppiumDriver.java:1) at io.appium.java_client.android.AndroidDriver.findElement(AndroidDriver.java:1) at io.appium.java_client.pagefactory.AppiumElementLocator.lambda$0(AppiumElementLocator.java:120) at io.appium.java_client.pagefactory.AppiumElementLocator$WaitingFunction.apply(AppiumElementLocator.java:172) at io.appium.java_client.pagefactory.AppiumElementLocator$WaitingFunction.apply(AppiumElementLocator.java:1) at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:249) ... 30 more

`

and here is my code . note that when i clear clipboard so nothing to be paste the tast pass normally

` public void Verify_user_can_add_and_remove_song() { TrackList.click(); PlayList.click(); SportPlayList.click(); try { if (mishaa.isDisplayed()) { System.out.println("song is displayed in the playlist"); mishaa.click(); //performing long press (press and hold) TouchAction action = new TouchAction(driver); action.longPress(longPressOptions().withElement(element(mishaa))).release().perform(); RemoveIcon.click(); Assert.assertNotEquals(mishaa.isDisplayed(), false); }

    } catch(NoSuchElementException e){
        System.out.println("Song is not displayed in the playlist");
        AddTrack.click();
        Folders.click();
        Download.click();
        SearchIcon.click();
        SearchField.sendKeys("misha");
        mishaa.click();
        //conditional wait until presence of an element
        new WebDriverWait(driver, 15).until(ExpectedConditions.presenceOfElementLocated(By.id("com.sec.android.app.music:id/menu_picker_search_done"))).click();
        Assert.assertEquals(mishaa.getText(), "Misha Klein & Nikita Malinin - Tell Me Why (Original Mix)");
    }

}`

@AndroidFindBy(id = "com.sec.android.app.music:id/search_src_text") private MobileElement SearchField;

        **SearchField.sendKeys("misha");**
amrsa1 commented 5 years ago

@KazuCocoa this is another test using same method and i doesnt make this behaviour and test passed normally

[HTTP] {"id":"2","text":"hateer","value":["h","a","t","e","e","r"]} [debug] [W3C (a2d8c613)] Calling AppiumDriver.setValue() with args: [["h","a","t","e","e","r"],"2","a2d8c613-8b81-40aa-93e6-0f13e186ba77"] [debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"element:setText","params":{"elementId":"2","text":"hateer","replace":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"element:setText","params":{"elementId":"2","text":"hateer","replace":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: setText [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using element passed in: 2 [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Attempting to clear using UiObject.clearText(). [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Text remains after clearing, but it appears to be hint text. [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Text not cleared. Assuming remainder is hint text. [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Sending plain text to element: hateer [debug] [AndroidBootstrap] Received command result from bootstrap [debug] [W3C (a2d8c613)] Responding to client with driver.setValue() result: true [HTTP] <-- POST /wd/hub/session/a2d8c613-8b81-40aa-93e6-0f13e186ba77/element/2/value 200 6101 ms - 14 [HTTP] [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":true} [HTTP] --> GET /wd/hub/session/a2d8c613-8b81-40aa-93e6-0f13e186ba77 [HTTP] {} [debug] [W3C (a2d8c613)] Calling AppiumDriver.getSession() with args: ["a2d8c613-8b81-40aa-93e6-0f13e186ba77"] [debug] [W3C (a2d8c613)] 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","deviceId":"192.168.30.19:5555","unlockKey":"@0122882435abA","unlockType":"password","appActivity":".common.activity.MusicMainActivity","appPackage":"com.sec.android.app.music","automationName":"uiautomator1","deviceName":"Note8","fullReset":false,"noReset":true,"platformVersion":"9"},"platformName":"android","deviceId":"192.168.30.19:5555","unlockKey":"@0122882435abA","unlockType":"password","appActivity":".common.activity.MusicMainActivity","appPackage":"com.sec.android.app.music","automationName":"uiautomator1","deviceName":"988a1641434e36333130","fullReset":false,"noReset":true,"platformVersion":"9","deviceUDID":"988a1641434e36333130","deviceScreenSize":"1440x2960","deviceModel":"SM-N950F","deviceManufacturer":"samsung"} [HTTP] <-- GET /wd/hub/session/a2d8c613-8b81-40aa-93e6-0f13e186ba77 200 3 ms - 975 [HTTP] [HTTP] --> POST /wd/hub/session/a2d8c613-8b81-40aa-93e6-0f13e186ba77/element [HTTP] {"using":"xpath","value":".//[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Hateer Mn Tany']"} [debug] [W3C (a2d8c613)] Calling AppiumDriver.findElement() with args: ["xpath",".//[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Hateer Mn Tany']","a2d8c613-8b81-40aa-93e6-0f13e186ba77"] [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator [debug] [BaseDriver] Waiting up to 4000 ms for condition [debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":".//[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Hateer Mn Tany']","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":".//[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Hateer Mn Tany']","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding './/[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Hateer Mn Tany']' using 'XPATH' with the contextId: '' multiple: false [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Failed to locate element. Clearing Accessibility cache and retrying. [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding './/[(@resource-id ='com.sec.android.app.music:id/text1') and @text='Hateer Mn Tany']' using 'XPATH' with the contextId: '' multiple: false [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[CLASS=android.widget.TextView, INSTANCE=4] [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":{"ELEMENT":"3"}} [debug] [AndroidBootstrap] Received command result from bootstrap [debug] [W3C (a2d8c613)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"3","ELEMENT":"3"} [HTTP] <-- POST /wd/hub/session/a2d8c613-8b81-40aa-93e6-0f13e186ba77/element 200 815 ms - 67 [HTTP] [HTTP] --> POST /wd/hub/session/a2d8c613-8b81-40aa-93e6-0f13e186ba77/element/3/click [HTTP] {"id":"3"} [debug] [W3C (a2d8c613)] Calling AppiumDriver.click() with args: ["3","a2d8c613-8b81-40aa-93e6-0f13e186ba77"] [debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"element:click","params":{"elementId":"3"}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"element:click","params":{"elementId":"3"}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: click [debug] [AndroidBootstrap] Received command result from bootstrap [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":true} [debug] [W3C (a2d8c613)] Responding to client with driver.click() result: true [HTTP] <-- POST /wd/hub/session/a2d8c613-8b81-40aa-93e6-0f13e186ba77/element/3/click 200 182 ms - 14 [HTTP]

KazuCocoa commented 5 years ago
  1. What capability did the server get? Your log said the test was running uiautomator1, not uiautomator2.
  2. Is the behaviour happens on another application?

Appium calls UiObject or AccessibilityNodeInfo#performAction in setText. So, the command itself triggers paste/websearch etc. I tried send_keys for google search, but I could not find such behaviour.

I tested as below command on emulator and a real device which has clipboad data. But paste/websearch does not appear and such pasting also has not happened.

[HTTP] --> POST /wd/hub/session/3d667cdb-3190-4373-8380-e9532a2302e5/element/636d1cff-3aa6-45bc-a65a-45c1724eecea/value
[HTTP] {"value":["h","e","l","l","o"," ","a","p","p","i","u","m"],"text":"hello appium"}
[debug] [W3C (3d667cdb)] Calling AppiumDriver.setValue() with args: [["h","e","l","l","o"," ","a","p","p","i","u","m"],"636d1cff-3aa6-45bc-a65a-45c1724eecea","3d667cdb-3190-4373-8380-e9532a2302e5"]
[debug] [WD Proxy] Matched '/element/636d1cff-3aa6-45bc-a65a-45c1724eecea/value' to command name 'setValue'
[debug] [Protocol Converter] Added 'value' property ["h","e","l","l","o"," ","a","p","p","i","u","m"] to 'setValue' request body
[debug] [WD Proxy] Proxying [POST /element/636d1cff-3aa6-45bc-a65a-45c1724eecea/value] to [POST http://localhost:8200/wd/hub/session/1e78c3bd-5001-412a-8113-d0c2e26c518b/element/636d1cff-3aa6-45bc-a65a-45c1724eecea/value] with body: {"elementId":"636d1cff-3aa6-45bc-a65a-45c1724eecea","text":"hello appium","replace":false,"unicodeKeyboard":true,"value":["h","e","l","l","o"," ","a","p","p","i","u","m"]}
[debug] [WD Proxy] Got response with status 200: {"sessionId":"1e78c3bd-5001-412a-8113-d0c2e26c518b","status":0,"value":""}
[debug] [W3C (3d667cdb)] Responding to client with driver.setValue() result: ""
[HTTP] <-- POST /wd/hub/session/3d667cdb-3190-4373-8380-e9532a2302e5/element/636d1cff-3aa6-45bc-a65a-45c1724eecea/value 200 672 ms - 12

Appium was 1.13.0, btw