neteasegame / atx Goto Github PK
View Code? Open in Web Editor NEWSmart phone automation tool. Support iOS, Android, WebApp and game.
License: Apache License 2.0
Smart phone automation tool. Support iOS, Android, WebApp and game.
License: Apache License 2.0
I have a error when i build exe with cx_Freeze and nuitka:
d.connect()
list index out of range
How to build a app using AutomatorX with cx_Freeze?
如题,游戏进入横屏状态,但atx还认为4.1的设备在竖屏状态下。导致无法点击图片
只是用来显示版本号
参考资料 https://github.com/quamotion/quamotion-content/blob/master/install-ios-developer-disk.md
需要实现的功能
python -matx iosdevelop
运行后,将镜将开发者镜像挂载到手机上
每次第一次保存完图片后,后面的保存路径建议采用上一次的保存路径,不用每次都去选择保存路径
aTx
For example
atx.connect()
例如 button@rsl(1920x1280)offset(50x80)anchor(M).png
使用 python -matx minicap
在 genymotion 模拟器上安装 minicap 报错:
$ python -matx minicap
2016-05-30 12:51:19.568 INFO [minicap: 55] Minicap install started!
2016-05-30 12:51:19.569 INFO [minicap: 60] Make temp dir ...
2016-05-30 12:51:19.575 INFO [minicap: 64] Retrive device information ...
2016-05-30 12:51:19.587 ERROR [minicap: 100] run cmd: adb -H 127.0.0.1 -P 5037 shell getprop ro.product.cpu.abi failed. [Errno 2] No such file or directory
2016-05-30 12:51:19.588 INFO [minicap: 103] Cleaning temp dir
但单独运行出错的命令没有问题:
$ adb -H 127.0.0.1 -P 5037 shell getprop ro.product.cpu.abi
x86
Genymotion 版本:2.5.2, reversion: 20150717-d5a1e88
模拟器相关信息:Google Nexus 4 -5.0.0-API 21-768x1280
不知道是不支持还是别的原因?
PS:直接用 stf 试过,stf 中找不到这个模拟器设备。。。
When I use quit() after click() ,in most cases (not always) quit immediate ,not after click()
w.on('enter-game.png').click().quit()
需要hook_wrap的引入 并不需要
如题
win 10 32位PC,atx安装成功后,每次只能完成一次操作
按以下执行,第二次click()操作一直不返回结果
Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import atx
>>> d=atx.connect()
>>> d.click(300,600)
True
>>> d.click(300,600)
不仅仅是click(),包括screenshot()都存在类似问题
$ python -matx install demo.apk
Multi devices detected.
1) cff131
2) 127.0.0.1:26944
select [1-2]:
win 10 32位PC,atx安装完毕后,按照指示完成设备的连接(atx.connect()),未报错
命令行运行python -m atx minicap
报错信息如下:
D:\duping\atx>python -m atx minicap
2016-07-29 10:58:29.029 INFO [minicap: 55] Minicap install started!
2016-07-29 10:58:29.029 INFO [minicap: 60] Make temp dir ...
2016-07-29 10:58:29.029 INFO [minicap: 64] Retrive device information ...
2016-07-29 10:58:29.060 ERROR [minicap: 100] run cmd: adb -H 127.0.0.1 -P 5037 shell getprop ro.product.cpu.abi failed. Command 'adb -H 127.0.0.1 -P 5037 shell getprop ro.product.cpu.abi' returned non-zero exit status 1
2016-07-29 10:58:29.060 INFO [minicap: 103] Cleaning temp dir
在命令中指定端口到15073后问题解决
Python -m atx -H 127.0.0.1 -P 15037 minicap
另,以下测试设备均有问题
小米5 6.0.1
三星note4 4.4.4
三星s3 4.3
如果执行多个脚本,希望有个总结果页面,可以把执行若干的atx的结果页面用一个总的页面链接起来
Serial | Result | Link |
---|---|---|
af1222 | PASS | http://.... |
bd323 | FAIL | http://.... |
yyeww | OFFLINE | http://.... |
yyeww | SKIP | http://.... |
unable to use like this
on(atx.Pattern("xx.png",offset=(xx,xx))).click()
需要也能自动替换文件中的文件名
pip install http://goandroid.qiniucdn.com/opencv_python-2.4.12-cp27-none-win_amd64.whl
File not Found. I suggest you should change language to english
如 adb_cmd
, adb_shell
Traceback (most recent call last):
File "C:\Python27\lib\runpy.py", line 162, in run_module_as_main
"main", fname, loader, pkg_name)
File "C:\Python27\lib\runpy.py", line 72, in run_code
exec code in run_globals
File "C:\Python27\lib\site-packages\atx__main.py", line 141, in
main()
File "C:\Python27\lib\site-packages\atx__main__.py", line 138, in main
args.func(args)
File "C:\Python27\lib\site-packages\atx__main__.py", line 46, in inner
return inject(mod.main, pargs)
File "C:\Python27\lib\site-packages\atx__main_.py", line 37, in inject
return func(*args)
File "C:\Python27\lib\site-packages\atx\cmds\tkgui.py", line 363, in main
d.wakeup()
File "C:\Python27\lib\site-packages\uiautomator__init__.py", line 797, in wak
eup
self.server.jsonrpc.wakeUp()
File "C:\Python27\lib\site-packages\uiautomator__init__.py", line 430, in wra
pper
server.start(timeout=30)
File "C:\Python27\lib\site-packages\uiautomator__init__.py", line 468, in sta
rt
files = self.push()
File "C:\Python27\lib\site-packages\uiautomator__init__.py", line 404, in pus
h
self.adb.cmd("push", filename, "/data/local/tmp/").wait()
File "C:\Python27\lib\site-packages\uiautomator__init__.py", line 288, in cmd
return self.raw_cmd(*["-s", serial] + list(args))
File "C:\Python27\lib\site-packages\uiautomator__init__.py", line 297, in raw
_cmd
return subprocess.Popen(cmd_line, shell=True, stdout=subprocess.PIPE, stderr
=subprocess.PIPE)
File "C:\Python27\lib\subprocess.py", line 710, in init
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 913, in _execute_child
args = list2cmdline(args)
File "C:\Python27\lib\subprocess.py", line 644, in list2cmdline
return ''.join(result)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd1 in position 0: ordinal
not in range(128)
如题
d.input_methods()
Motorola手机点击觉醒按钮点不中,具体情况泡泡联系wyn2271
My scenario:
Error: After a period then workflow don't work. It's pause
d(text="abc").click()
。如果可以,希望可以翻译成“点击文字abc”。d(text="abc").exist
。如果可以,希望可以翻译成“文字adb存在”或者“文字abc不存在”。(但是我这边的用法是加上assert exist==True
。看看怎么表达比较好?点击坐标的偏移百分比
规则
<name>.<T|B><number><L|R><number>.png
T代表Top,B代表Bottom,L代表Left,R代表Right
filename: button.T50R150.png
代表向上偏移50%,向右偏移150%
python -matx.ios screencap -o out.png
For example
d.keep_screen()
d.free_screen()
提示 adb.build_cmd 不存在
python -m atx screenrecord -o out.avi
正确录制视频
异常报错
C:\Users\Administrator>python -m atx screenrecord -o out.avi
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\atx\adbkit\mixins.py", line 152, in _pull
assert p.poll() is None
AssertionError
Process died.
ERROR: invalid format for -P, need <w>x<h>@<w>x<h>/{0|90|180|270}
minicap died
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.