Skip to main content

No project description provided

Project description

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

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

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

wetest_gautomator3-2.1.1-py3-none-any.whl (32.1 kB view details)

Uploaded Python 3

File details

Details for the file wetest_gautomator3-2.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for wetest_gautomator3-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e75b433afbbc0c6ff84eb39019f0054dbc4dfdf3d9f3980dc291ca38e42e0d58
MD5 3518db4d0c227b8fc90c0cf374b754bc
BLAKE2b-256 bf5d111d8e2bf2c05e4de0d4103a6eaa17c956662f2ccd4c5f27bb61bdd29265

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page