Не запускается автотест java+appium, помогите разобраться что не так

Пытаюсь запустить автотест из IDEA, при помощи appium и эмулятора amd и получаю следующее:

июн 01, 2017 2:03:33 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Attempting bi-dialect session, assuming Postel’s Law holds true on the remote end
июн 01, 2017 2:03:56 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS

org.openqa.selenium.InvalidSelectorException: Locator Strategy ‘name’ is not supported for this session (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 87 milliseconds
For documentation on this error, please visit: Selenium
Build info: version: ‘3.0.1’, revision: ‘1969d75’, time: ‘2016-10-18 09:49:13 -0700’
System info: host: ‘DESKTOP-4KSL5LH’, ip: ‘192.168.1.5’, os.name: ‘Windows 10’, os.arch: ‘x86’, os.version: ‘10.0’, java.version: ‘1.8.0_131’
Driver info: io.appium.java_client.android.AndroidDriver
Capabilities [{app=C:\Users\Malina\IdeaProjects\CalcTest\Calc\app-debug.apk, appPackage=com.vbanthia.androidsampleapp, deviceScreenSize=1080x1920, networkConnectionEnabled=true, warnings={}, databaseEnabled=false, version=7.0, deviceName=emulator-5554, platform=LINUX, deviceUDID=emulator-5554, appActivity=.MainActivity, desired={app=C:\Users\Malina\IdeaProjects\CalcTest\Calc\app-debug.apk, appPackage=com.vbanthia.androidsampleapp, appActivity=.MainActivity, browserName=, platformName=Android, version=7.0, deviceName=Nexus_5_API_24}, platformVersion=7.0, webStorageEnabled=false, locationContextEnabled=false, takesScreenshot=true, browserName=, javascriptEnabled=true, deviceModel=Android SDK built for x86, platformName=Android, deviceManufacturer=Google}]
Session ID: 757c86b7-665c-48e1-8d34-6071a25bf446
*** Element info: {Using=name, value=+}

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:216)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:168)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:635)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:40)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:368)
at io.appium.java_client.DefaultGenericMobileDriver.findElement(DefaultGenericMobileDriver.java:56)
at io.appium.java_client.AppiumDriver.findElement(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.findElement(AndroidDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.findElementByName(RemoteWebDriver.java:449)
at io.appium.java_client.DefaultGenericMobileDriver.findElementByName(DefaultGenericMobileDriver.java:104)
at io.appium.java_client.AppiumDriver.findElementByName(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.findElementByName(AndroidDriver.java:1)
at ClassOne.ClassOne.additionTest(ClassOne.java:44)
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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:51)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)

При этом Desktop версия appium говорит следующее, не смотря на то, что все пути прописаны и проверены в консоли appium-doctor:

info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: Could not find adb. Please set the ANDROID_HOME environment variable with the Android SDK root directory path.)”,“origValue”:“Could not find adb. Please set the ANDROID_HOME environment variable with the Android SDK root directory path.”},“sessionId”:null}

А при запуске appium из консоли никаких ошибок вроде бы не видно:

[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:“C:\Users\Malina\IdeaProjects\CalcTest\Calc\app-debug.apk”,“appPackage”:“com.vbanthia.androidsampleapp”,“appActivity”:“.MainActivity”,“browserName”:“”,“platformName”:“Android”,“version”:“7.0”,“deviceName”:“Nexus_5_API_24”},{},{“desiredCapabilities”:{“app”:“C:\Users\Malina\IdeaProjects\CalcTest\Calc\app-debug.apk”,“appPackage”:“com.vbanthia.androidsampleapp”,“appActivity”:“.MainActivity”,“browserName”:“”,“platformName”:“Android”,“version”:“7.0”,“deviceName”:“Nexus_5_API_24”},“requiredCapabilities”:{}}]
[debug] [BaseDriver] Event ‘newSessionRequested’ logged at 1496259360105 (02:36:00 GMT+0700 (RTZ 6 (зима)))
[Appium] Creating new AndroidDriver (v1.20.0) session
[Appium] Capabilities:
[Appium] app: ‘C:\Users\Malina\IdeaProjects\CalcTest\Calc\app-debug.apk’
[Appium] appPackage: ‘com.vbanthia.androidsampleapp’
[Appium] appActivity: ‘.MainActivity’
[Appium] browserName: ‘’
[Appium] platformName: ‘Android’
[Appium] version: ‘7.0’
[Appium] deviceName: ‘Nexus_5_API_24’
[debug] [AndroidDriver] AndroidDriver version: 1.20.0
[BaseDriver] The following capabilities were provided, but are not recognized by appium: version.
[BaseDriver] Session created with session id: 33f81001-6592-42a0-b7ca-d3cb5a0a0bc0
[debug] [AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 1.8.0_131
[ADB] Checking whether adb is present
[ADB] Using adb.exe from E:\Android\Sdk\platform-tools\adb.exe
[AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[AndroidDriver] Using device: emulator-5554
[ADB] Checking whether adb is present
[ADB] Using adb.exe from E:\Android\Sdk\platform-tools\adb.exe
[debug] [ADB] Setting device id to emulator-5554
[BaseDriver] Using local app ‘C:\Users\Malina\IdeaProjects\CalcTest\Calc\app-debug.apk’
[debug] [AndroidDriver] Checking whether app is actually present
[AndroidDriver] Starting Android session
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“wait-for-device”]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“shell”,“echo”,“ping”]
[debug] [Logcat] Starting logcat capture
[debug] [AndroidDriver] Pushing settings apk to device…
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“shell”,“pm”,“list”,“packages”,“io.appium.settings”]
[debug] [ADB] App is installed
[debug] [ADB] Getting package info for io.appium.settings
[debug] [ADB] Getting connected devices…
[ADB] Checking whether aapt is present
[ADB] Using aapt.exe from E:\Android\Sdk\build-tools\25.0.3\aapt.exe
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“shell”,“dumpsys”,“package”,“io.appium.settings”]
[ADB] Cannot read version codes of C:\Users\Malina\AppData\Roaming\npm\node_modules\appium\node_modules\io.appium.settings\app\build\outputs\apk\settings_apk-debug.apk and/or io.appium.settings. Assuming correct app version is already installed
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“shell”,“getprop”,“ro.build.version.sdk”]
[debug] [ADB] Device API level: 24
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“shell”,“dumpsys”,“package”,“io.appium.settings”]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“shell”,“pm”,“dump”,“io.appium.settings”]
[debug] [ADB] Got the following command chunks to execute: pm,grant,io.appium.settings,android.permission.WRITE_SETTINGS,;,pm,grant,io.appium.settings,android.permission.ACCESS_MOCK_LOCATION,;
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“shell”,“pm”,“grant”,“io.appium.settings”,“android.permission.WRITE_SETTINGS”,“;”,“pm”,“grant”,“io.appium.settings”,“android.permission.ACCESS_MOCK_LOCATION”,“;”]
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“shell”,“pm”,“grant”,“io.appium.settings”,“android.permission.WRITE_SETTINGS”,“;”,“pm”,“grant”,“io.appium.settings”,“android.permission.ACCESS_MOCK_LOCATION”,“;”]
[debug] [AndroidDriver] Pushing unlock helper app to device…
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“install”,“C:\Users\Malina\AppData\Roaming\npm\node_modules\appium\node_modules\appium-unlock\bin\unlock_apk-debug.apk”]
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“install”,“C:\Users\Malina\AppData\Roaming\npm\node_modules\appium\node_modules\appium-unlock\bin\unlock_apk-debug.apk”]
[debug] [ADB] Application ‘C:\Users\Malina\AppData\Roaming\npm\node_modules\appium\node_modules\appium-unlock\bin\unlock_apk-debug.apk’ already installed. Continuing.
[debug] [ADB] Device API level: 24
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“shell”,“appops”,“set”,“io.appium.settings”,“android:mock_location”,“allow”]
[ADB] Getting device platform version
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“shell”,“getprop”,“ro.build.version.release”]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“shell”,“wm”,“size”]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“shell”,“getprop”,“ro.product.model”]
[debug] [ADB] Current device property ‘ro.product.model’: Android SDK built for x86
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“shell”,“getprop”,“ro.product.manufacturer”]
[debug] [ADB] Current device property ‘ro.product.manufacturer’: Google
[AndroidDriver] Remote apk path is /data/local/tmp/946f8c5451e4bba6010708e9a9ff1a23.apk
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“shell”,“ls”,“/data/local/tmp/946f8c5451e4bba6010708e9a9ff1a23.apk”]
[debug] [AndroidDriver] Checking if app is installed
[debug] [ADB] Getting install status for com.vbanthia.androidsampleapp
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“shell”,“pm”,“list”,“packages”,“com.vbanthia.androidsampleapp”]
[debug] [ADB] App is not installed
[AndroidDriver] Apk is not yet installed
[AndroidDriver] installing apk from remote
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“shell”,“mkdir”,“-p”,“/data/local/tmp”]
[AndroidDriver] Clearing out any existing remote apks with the same hash
[debug] [AndroidDriver] Removing any old apks
[debug] [AndroidDriver] Except [“946f8c5451e4bba6010708e9a9ff1a23”]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“shell”,“ls”,“/data/local/tmp/*.apk”]
[debug] [ADB] Uninstalling com.vbanthia.androidsampleapp
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“shell”,“am”,“force-stop”,“com.vbanthia.androidsampleapp”]
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“uninstall”,“com.vbanthia.androidsampleapp”]
[ADB] App was not uninstalled, maybe it wasn’t on device?
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“shell”,“pm”,“install”,“-r”,“/data/local/tmp/946f8c5451e4bba6010708e9a9ff1a23.apk”]
[debug] [AndroidDriver] Extracting strings from apk C:\Users\Malina\IdeaProjects\CalcTest\Calc\app-debug.apk null C:\Users\Malina\AppData\Local\Temp\com.vbanthia.androidsampleapp
[debug] [ADB] Extracting strings for language: default
[debug] [ADB] Device API level: 24
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“shell”,“getprop”,“persist.sys.locale”]
[debug] [ADB] Current device property ‘persist.sys.locale’:
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“shell”,“getprop”,“ro.product.locale”]
[debug] [ADB] Current device property ‘ro.product.locale’: en-US
[debug] [ADB] No strings.xml for language ‘en’, getting default strings.xml
[debug] [ADB] Reading strings from converted strings.json
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“push”,“C:\Users\Malina\AppData\Local\Temp\com.vbanthia.androidsampleapp\strings.json”,“/data/local/tmp”]
[debug] [AndroidBootstrap] Watching for bootstrap disconnect
[debug] [ADB] Forwarding system: 4724 to device: 4724
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“forward”,“tcp:4724”,“tcp:4724”]
[debug] [UiAutomator] Starting UiAutomator
[debug] [UiAutomator] Moving to state ‘starting’
[debug] [UiAutomator] Parsing uiautomator jar
[debug] [UiAutomator] Found jar name: ‘AppiumBootstrap.jar’
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“push”,“C:\Users\Malina\AppData\Roaming\npm\node_modules\appium\node_modules\appium-android-bootstrap\bootstrap\bin\AppiumBootstrap.jar”,“/data/local/tmp/”]
[debug] [ADB] Attempting to kill all uiautomator processes
[debug] [ADB] Getting all processes with uiautomator
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“shell”,“ps”]
[ADB] No uiautomator process found to kill, continuing…
[debug] [UiAutomator] Starting UIAutomator
[debug] [ADB] Creating ADB subprocess with args: [“-P”,5037,“-s”,“emulator-5554”,“shell”,“uiautomator”,“runtest”,“AppiumBootstrap.jar”,“-c”,“io.appium.android.bootstrap.Bootstrap”,“-e”,“pkg”,“com.vbanthia.androidsampleapp”,“-e”,“disableAndroidWatchers”,false,“-e”,“acceptSslCerts”,false]
[debug] [UiAutomator] Moving to state ‘online’
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] json loading complete.
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Registered crash watchers.
[AndroidBootstrap] Android bootstrap socket is now connected
[debug] [ADB] Getting connected devices…
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Client connected
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“shell”,“dumpsys”,“window”]
[AndroidDriver] Screen already unlocked, doing nothing
[debug] [ADB] Device API level: 24
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“shell”,“am”,“start”,“-W”,“-n”,“com.vbanthia.androidsampleapp/.MainActivity”,“-S”,“-a”,“android.intent.action.MAIN”,“-c”,“android.intent.category.LAUNCHER”,“-f”,“0x10200000”]
[Appium] New AndroidDriver session created successfully, session 33f81001-6592-42a0-b7ca-d3cb5a0a0bc0 added to master session list
[debug] [BaseDriver] Event ‘newSessionStarted’ logged at 1496259391914 (02:36:31 GMT+0700 (RTZ 6 (зима)))
[debug] [MJSONWP] Responding to client with driver.createSession() result: {“platform”:“LINUX”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“app”:“C:\Users\Malina\IdeaProjects\CalcTest\Calc\app-debug.apk”,“appPackage”:“com.vbanthia.androidsampleapp”,“appActivity”:“.MainActivity”,“browserName”:“”,“platformName”:“Android”,“version”:“7.0”,“deviceName”:“Nexus_5_API_24”},“app”:“C:\Users\Malina\IdeaProjects\CalcTest\Calc\app-debug.apk”,“appPackage”:“com.vbanthia.androidsampleapp”,“appActivity”:“.MainActivity”,“browserName”:“”,“platformName”:“Android”,“version”:“7.0”,“deviceName”:“emulator-5554”,“deviceUDID”:“emulator-5554”,“platformVersion”:“7.0”,“deviceScreenSize”:“1080x1920”,“deviceModel”:“Android SDK built for x86”,“deviceManufacturer”:“Google”}
[HTTP] ← POST /wd/hub/session 200 31856 ms - 902
[HTTP] → POST /wd/hub/session/33f81001-6592-42a0-b7ca-d3cb5a0a0bc0/element {“using”:“id”,“value”:“inputFieldLeft”}
[debug] [MJSONWP] Calling AppiumDriver.findElement() with args: [“id”,“inputFieldLeft”,“33f81001-6592-42a0-b7ca-d3cb5a0a0bc0”]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[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”:“inputFieldLeft”,“context”:“”,“multiple”:false}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“id”,“selector”:“inputFieldLeft”,“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 ‘inputFieldLeft’ using ‘ID’ with the contextId: ‘’ multiple: false
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=com.vbanthia.androidsampleapp:id/inputFieldLeft]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {“status”:0,“value”:{“ELEMENT”:“1”}}
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Responding to client with driver.findElement() result: {“ELEMENT”:“1”}
[HTTP] ← POST /wd/hub/session/33f81001-6592-42a0-b7ca-d3cb5a0a0bc0/element 200 313 ms - 87
[HTTP] → POST /wd/hub/session/33f81001-6592-42a0-b7ca-d3cb5a0a0bc0/element/1/value {“id”:“1”,“value”:[“8”]}
[debug] [MJSONWP] Calling AppiumDriver.setValue() with args: [[“8”],“1”,“33f81001-6592-42a0-b7ca-d3cb5a0a0bc0”]
[debug] [AndroidBootstrap] Sending command to android: {“cmd”:“action”,“action”:“element:setText”,“params”:{“elementId”:“1”,“text”:“8”,“replace”:false}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“action”,“action”:“element:setText”,“params”:{“elementId”:“1”,“text”:“8”,“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: 1
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Attempting to clear using UiObject.clearText().
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Sending plain text to element: 8
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Responding to client with driver.setValue() result: true
[HTTP] ← POST /wd/hub/session/33f81001-6592-42a0-b7ca-d3cb5a0a0bc0/element/1/value 200 4920 ms - 76
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {“status”:0,“value”:true}
[HTTP] → POST /wd/hub/session/33f81001-6592-42a0-b7ca-d3cb5a0a0bc0/element {“using”:“id”,“value”:“inputFieldLeft”}
[debug] [MJSONWP] Calling AppiumDriver.findElement() with args: [“id”,“inputFieldLeft”,“33f81001-6592-42a0-b7ca-d3cb5a0a0bc0”]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[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”:“inputFieldLeft”,“context”:“”,“multiple”:false}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“id”,“selector”:“inputFieldLeft”,“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 ‘inputFieldLeft’ using ‘ID’ with the contextId: ‘’ multiple: false
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=com.vbanthia.androidsampleapp:id/inputFieldLeft]
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Responding to client with driver.findElement() result: {“ELEMENT”:“2”}
[HTTP] ← POST /wd/hub/session/33f81001-6592-42a0-b7ca-d3cb5a0a0bc0/element 200 509 ms - 87
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {“status”:0,“value”:{“ELEMENT”:“2”}}
[HTTP] → POST /wd/hub/session/33f81001-6592-42a0-b7ca-d3cb5a0a0bc0/element/2/value {“id”:“2”,“value”:[“4”]}
[debug] [MJSONWP] Calling AppiumDriver.setValue() with args: [[“4”],“2”,“33f81001-6592-42a0-b7ca-d3cb5a0a0bc0”]
[debug] [AndroidBootstrap] Sending command to android: {“cmd”:“action”,“action”:“element:setText”,“params”:{“elementId”:“2”,“text”:“4”,“replace”:false}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“action”,“action”:“element:setText”,“params”:{“elementId”:“2”,“text”:“4”,“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: 2
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Attempting to clear using UiObject.clearText().
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Sending plain text to element: 84
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {“status”:0,“value”:true}
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Responding to client with driver.setValue() result: true
[HTTP] ← POST /wd/hub/session/33f81001-6592-42a0-b7ca-d3cb5a0a0bc0/element/2/value 200 6312 ms - 76
[HTTP] → POST /wd/hub/session/33f81001-6592-42a0-b7ca-d3cb5a0a0bc0/element {“using”:“name”,“value”:“+”}
[debug] [MJSONWP] Calling AppiumDriver.findElement() with args: [“name”,“+”,“33f81001-6592-42a0-b7ca-d3cb5a0a0bc0”]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[HTTP] ← POST /wd/hub/session/33f81001-6592-42a0-b7ca-d3cb5a0a0bc0/element 500 26 ms - 144
[HTTP] → DELETE /wd/hub/session/33f81001-6592-42a0-b7ca-d3cb5a0a0bc0 {}
[debug] [MJSONWP] Calling AppiumDriver.deleteSession() with args: [“33f81001-6592-42a0-b7ca-d3cb5a0a0bc0”]
[debug] [BaseDriver] Event ‘quitSessionRequested’ logged at 1496259404984 (02:36:44 GMT+0700 (RTZ 6 (зима)))
[debug] [AndroidDriver] Shutting down Android driver
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“shell”,“am”,“force-stop”,“com.vbanthia.androidsampleapp”]
[debug] [ADB] Pressing the HOME button
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“shell”,“input”,“keyevent”,3]
[debug] [AndroidBootstrap] Sending command to android: {“cmd”:“shutdown”}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“shutdown”}
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [UiAutomator] Shutting down UiAutomator
[debug] [UiAutomator] Moving to state ‘stopping’
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type SHUTDOWN
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {“status”:0,“value”:“OK, shutting down”}
[debug] [UiAutomator] UiAutomator shut down normally
[debug] [UiAutomator] Moving to state ‘stopped’
[debug] [ADB] Attempting to kill all uiautomator processes
[debug] [ADB] Getting all processes with uiautomator
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“shell”,“ps”]
[ADB] No uiautomator process found to kill, continuing…
[debug] [UiAutomator] Moving to state ‘stopped’
[debug] [Logcat] Stopping logcat capture
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘E:\Android\Sdk\platform-tools\adb.exe’ with args: [“-P”,5037,“-s”,“emulator-5554”,“shell”,“am”,“force-stop”,“io.appium.unlock”]
[debug] [AndroidDriver] Not cleaning generated files. Add clearSystemFiles capability if wanted.
[Appium] Removing session 33f81001-6592-42a0-b7ca-d3cb5a0a0bc0 from our master session list
[debug] [BaseDriver] Event ‘quitSessionFinished’ logged at 1496259408067 (02:36:48 GMT+0700 (RTZ 6 (зима)))
[debug] [MJSONWP] Received response: null
[debug] [MJSONWP] But deleting session, so not returning
[debug] [MJSONWP] Responding to client with driver.deleteSession() result: null
[HTTP] ← DELETE /wd/hub/session/33f81001-6592-42a0-b7ca-d3cb5a0a0bc0 200 3091 ms - 76

Помогите, пожалуйста. Я новичок и никак не получается даже запустить код(((( Код следующий:

package ClassOne;

import java.net.MalformedURLException;
import java.net.URL;
import java.io.File;

import io.appium.java_client.android.AndroidDriver;
import org.openqa.selenium.remote.CapabilityType;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.junit.*;

public class ClassOne {

private AndroidDriver driver;

@Before
public void setUp() throws MalformedURLException {

    File classpathRoot = new File(System.getProperty("user.dir"));
    File appDir = new File(classpathRoot, "/Calc");
    File app = new File(appDir, "app-debug.apk");

    DesiredCapabilities capabilities = new DesiredCapabilities();
    capabilities.setCapability(CapabilityType.BROWSER_NAME, "");
    capabilities.setCapability("platformName", "Android");
    capabilities.setCapability(CapabilityType.VERSION, "7.0");
    capabilities.setCapability("deviceName", "Nexus_5_API_24");
    //capabilities.setCapability("avd", "emulator-5554");
    capabilities.setCapability("app", app.getAbsolutePath());
    capabilities.setCapability("appPackage", "com.vbanthia.androidsampleapp");
    capabilities.setCapability("appActivity", ".MainActivity");
    driver = new AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
}

@After
public void afterTest() {
    driver.quit();
}

@Test
public void additionTest() {
    driver.findElementById("inputFieldLeft").sendKeys("8");
    driver.findElementById("inputFieldLeft").sendKeys("4");
    driver.findElementByName("+").click();
    String result = driver.findElementByClassName("android.widget.TextView").getText();
    String add[] = result.split("= ");
    Assert.assertEquals("12", add[1]);
}

}

ну видимо тут что то driver.findElementByName("+").click(); - Ви как ети локатори достали ?

2 лайка

Вы правы, дело оказалось именно в этой строчке. Desktop версия Appium не видела adb из-за того, что прописаны были переменные среды, а не системные переменные. После того, как я закомментировала код, начиная с этой строчки, увидела, что программа запускается и на эмуляторе вводятся числа. Надеюсь это кому-нибудь поможет, потому что я убила несколько дней, чтобы разобраться)

Отметьте тогда ответ как правильный

А сообщение от Appium получается не имеет никакого отношения к проблеме с переменной ANDROID_HOME?

info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: Could not find adb. Please set the ANDROID_HOME environment variable with the Android SDK root directory path.)”,“origValue”:“Could not find adb. Please set the ANDROID_HOME environment variable with the Android SDK root directory path.”},“sessionId”:null}