Skip to main content

Wetest GAutomator3 Python Client

Wetest GAutomator3 Python Client 是一款用于配合 Wetest GAutomator3 Plugins 使用的客户端框架.

GAutomator3 Python client 能够实现XML控件树导出、指令输入、强大的元素搜索和多样化的元素交互功能。

使用

安装

  1. 从公网 Pypi 进行安装

    pip install --upgrade wetest-gautomator3
    
  2. 从腾讯内部 Pypi 源进行安装

    pip install wetest-gautomator3 --upgrade --extra-index-url https://mirrors.tencent.com/repository/pypi/tencent_pypi/simple
    
  3. 在仓库release中下载 .whl 包进行安装

样例

样例可以在仓库根目录下找到: /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

特别感谢以下开源项目的启发:

Metadata

Release files for wetest-gautomator3 2.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for wetest-gautomator3 2.1.5
File Interpreter ABI Platform
wetest_gautomator3-2.1.5-py3-none-any.whl Python 3 none any Details

Release files / wetest_gautomator3-2.1.5-py3-none-any.whl

Download URL wetest_gautomator3-2.1.5-py3-none-any.whl
Size 29.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fcfd93aa5885925fa0cf9e1ca4f14560a2d59ca7d223051c8ad0d6214bc4a818
BLAKE2b-256 checksum
How to use checksums
d5933cde7b5308fac1c88457815d9a41b33077e6a82f4aa2390afc5bbed6edbc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.14

Release history Release notifications | RSS feed

This release

2.1.5 This release

1 release file

2.1.4

1 release file

2.1.3

1 release file

2.1.2

1 release file

2.1.1

1 release file

2.1.0

1 release file

2.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page