No project description provided
Project description
Wetest GAutomator3 Python Client
Wetest GAutomator3 Python Client是一款用于配合Wetest GAutomator3 Plugins使用的客户端框架.
GAutomator3 Python client能够实现XML控件树导出、指令输入、强大的元素搜索和多样化的元素交互功能。
使用
安装
使用以下命令可以直接从腾讯Pypi源进行安装,或在仓库release中下载.whl
包进行安装。
pip install wetest-gautomator3 --upgrade --extra-index-url https://mirrors.tencent.com/repository/pypi/tencent_pypi/simple
样例
样例可以在仓库根目录下找到: /examples.py
。
样例是依据UE demo项目ActionRPG Demo编写的,请自行下载、编译demo并安装插件。
Startup
from wetest.gautomator3 import Client, By, Context
# Create socket by address or socket, including sockets created from adbutils and tidevice.
sock = socket.socket()
sock.connect(("127.0.0.1", 27029))
# Create client through socket
client = Client(addr=sock, timeout=5)
element = client.find_element(Context.Slate, By.widget_path, "MainFrameModule.cpp(111)/SWindow.cpp(597)")
print(element.address, element.get_attribute("x"))
element_parent = client.get_parent(element)
print(element_parent.get_attribute("widgetPath"))
APIs 文档: 建设中
作者信息 & 致谢
Tencent WeTest Team
特别感谢以下开源项目的启发:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file wetest_gautomator3-2.0.2-py3-none-any.whl
.
File metadata
- Download URL: wetest_gautomator3-2.0.2-py3-none-any.whl
- Upload date:
- Size: 28.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a056c3f7ad3331ecfb0f6962bc85b4d77485f74cf9d7726044e1d64438874c63 |
|
MD5 | cc224470a1148e51536a8bd1dc71e4e0 |
|
BLAKE2b-256 | 4195fb083b3653f80855494ae8b1ea7e55dc270458b228afa2648be2135a3268 |