Version 2.1 updated at the start of the thread
Added action to just test url with simpler output
AndroidManager - module for managing android emulators
-
@thepappo how do i fix this error below
Error: Failed to create session. connect ETIMEDOUT 127.0.0.1:4723 when running "http://127.0.0.1:4723/wd/hub/session" with method "POST" and args "{"capabilities":{"alwaysMatch":{"platformName":"android","appium:udid":"78KNW20113001080","appium:automationName":"UiAutomator2","appium:newCommandTimeout":360},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"android","appium:udid":"78KNW20113001080","appium:automationName":"UiAutomator2","appium:newCommandTimeout":360}}"
-
-
This post is deleted!
-
Can you confirm if "Is Element Exists" is working as intended? I used multiple different xpaths for different elements and they all return as false even though they are present on the screen.
-
I follow all the steps but I got this issue when I try to connect to the simulator when using your example file:
[402248657] [23:39:04] Thread #1 : Error: Failed to create session. An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: 'Command 'C:\Users\ngho\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21503 install -g C:\Users\ngho\AppData\Roaming\npm\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk' exited with code 1'; Command output: adb: failed to install C:\Users\ngho\AppData\Roaming\npm\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk: Exception occurred while executing: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.endsWith(java.lang.String)' on a null object reference at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:968) at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:179) at android.os.ShellCommand.exec(ShellCommand.java:103) at com.android.server.pm.PackageManagerService.onShellCommand(PackageMCould you help me with this?
-
@thepappo hey man! You did a great job with this module everything working ok. I have 5 physical mobiles connected on USB on my PC. Should I use same appium server for all these 5 devices or should I do a different appium server on each device.
Thank you for your work in this plugin. I ll try to donate also
-
@andreiem said in AndroidManager - module for managing android emulators:
some people say is normal for xpath to be slow on appium
Probably they were talking about the first appium version. The current one is rather faster. You can check a duration by doing "Get XML Dump" action. It runs without DOM parsing.
If you enable "Wait for the element to appear" checkbox, you can also try to change a "delay" option. It is responsible for the pause between searches for an element.

@andreiem said in AndroidManager - module for managing android emulators:
is there another way to click except click by coordinates and click by xpath?
No way as I know.
-
@andreiem said in Android Manager - модуль для управления android эмуляторами:
@poison008 use in cmd: taskkill /F /IM node.exe and then start appium server again: appium -a 127.0.0.1 -p 4723. After thaat no need to restart BAS just use the start server and connnect to device comands in BAS again
thanks!!!
-
Please tell me, can this module wipe the device's data?, just like bringing it back when it was purchased.
