Thank you!!! I just finished!!
AndroidManager - module for managing android emulators
-
Version 2.4
Added new actions:
- "Get XML by xpath" - allows you to get an XML string by xpath, if the element is not found, returns false;
- "Get Each XML" - allows you to get a list of XML matching the xpath request, if the element is not found, returns false;
- "Get Attribute of each Element" - allows you to get a list to which the value of the specified attribute will be added; works similarly to the "Get Element Attribute" action, but for all found elements; if elements are not found, returns false;
- "Get Elements Count" - allows you to get the number of found elements, returns an integer, if the element is not found - returns 0.
Bug fixes:
- Restored the work of the action "Swipe on Screen";
- Fixed a bug in the "Type Text" action (if "Clear the field before entering text" option was selected, the action caused an error).
-
I'm tying to get "Get Current Activity" and I'm getting this error: SubprocessError: Subprocess finished with code 255. Error: 'grep' is not recognized as an internal or external command, operable program or batch file.
Any ideas?
-
@ChrisHolmes you should install gow.exe and reboot your PC after that. This tool allows to execute linux commands.
-
@thepappo Ok, that fixed an issue, but I have another one. When I try to open Spotify App, I'm getting this:
SubprocessError: Subprocess finished with code 255. Error: Exception occurred while executing 'start': java.lang.IllegalArgumentException: Bad component name: com.spotify.com at android.content.Intent.parseCommandArgs(Intent.java:7599) at com.android.server.am.ActivityManagerShellCommand.makeIntent(ActivityManagerShellCommand.java:338) at com.android.server.am.ActivityManagerShellCommand.runStartActivity(ActivityManagerShellCommand.java:435) at com.android.server.am.ActivityManagerShellCommand.onCommand(ActivityManagerShellCommand.java:186) at android.os.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:98) at android.os.ShellCommand.exec(ShellCommand.java:44) at com.android.server.am.ActivityManagerService.onShellCommand(ActivityManagerService.java:10520) at android.os.Binder.shellCommand(Binder.java:929) at android.os.Binder.onTransact(Binder.java:813) at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:5027) at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2883) at android.os.Binder.execTransactInternal(Binder.java:1159) at android.os.Binder.execTransact(Binder.java:1123)If I open the app manually and use the function Close App, it works :D
-
@ChrisHolmes what emulator do you use? Mostly recommended to use MEmu, other emulators don't work well with appium.
-
Btw, how to set up multithreading?
-
@ChrisHolmes same as in other BAS scripts. See an example of script in the first post.
-
This post is deleted!
-
This post is deleted!
-
@ChrisHolmes first you create devices resource in onApplicationStart function and pass the list of running devices to it. Then you can get serial number for the current thread from this resource.
You can write any logic you want. This is just an example.
-
This post is deleted!
-
This post is deleted!
-
@thepappo Any ideas on how to solve this issue?
1 - [990215880] SubprocessError: Subprocess finished with code 1. Error: adb: failed to stat ToolKit/appsremote/MobileAccountToolKit/SID8dd4cb65/engine/e/0d00.KLVe/distr/app/lib/ADBKeyboard.apk: No such file or directoryThere is a file. This happens when you try to run Compiled version. If I open the project file and run it, it will install it. I don't have BAS on all my servers
This happens when you bot needs to type something
-
@ChrisHolmes try to install this APK manually on emulators you use.
If this issue will solved, you can do this through the actions: "Install App" (if condition from action "Is App Installed" is false).
-
I got stuck on the Starting Node 18.10.0 screen, any idea why? I got node.js installed
-
Has anyone tried to use MEmu comands? https://www.memuplay.com/blog/memucommand-reference-manual.html
Tried to run simple test Run Process / adb shell "memuc getconfigex -i 0 memory", but I'm getting this error
[946915109] [11:40:54] Thread #1 : SubprocessError: Subprocess finished with code 127. Error: /system/bin/sh: memuc: not foundAny ideas?
-
@ChrisHolmes this error due to the memuc command not found in the system variables. You should set it first or use full path in command line to memuc.exe.
P.S. the topic in English here.