问题标签 [androidviewclient]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
android - AndroidViewClient view.getvisibility() 返回 -1
当我运行以下代码时,虽然我将视图声明为可见,但它始终返回 -1:
我检查 getVisibility() 方法并看到它在获取可见性属性时出现异常时返回 -1。我的错在哪里?
androidviewclient - AndroidViewClient:连接多个设备时如何访问设备(适用于 AndroidViewclient 5.1.1)
我们有两台 Android 设备同时连接到 PC。我想使用wake
和drag
命令。到目前为止,我使用的是AndroidViewclient
3.2 版,它用于使用monkeyrunner
. 所以这些功能很容易自动化。
由于有新版本AndroidViewClient
(比后一个版本快得多),我们想迁移我们的脚本。
我们有一个功能可以解锁一个设备。但不适用于多个设备。你能帮助我们吗?
请找到代码:
我们不确定如何传递serialno
给Device_Unlock
函数
android - AndroidViewClient 中是否有 StopTheActivity 的选项
与 StartActivityOrExit 类似,是否有任何选项可以停止或强制关闭正在运行的特定活动。
android - Simulate touch, hold, move in android debug bridge
Rather than using a drag
or swipe
command in the android debug bridge or AndroidViewClient like this:
Is there some way to simulate something like the following?
Basically, you touch, hold there for a few seconds, drag and keep holding there for a few seconds, then release the pad.
android - androidviewclient - 无法通过端口转发连接到 vm 上的设备
我将 vm 上的 localhost 转发到具有 80 端口(8080 ip:80)的主机,avc 在此之前工作正常,现在连接到设备时出现错误:
一个错误:
我该如何解决这个问题?有什么建议么?
android - 使用AndroidViewclient 5.1.1的sameAs函数进行图像comaprision
嗨,我正在尝试借助 AndroidViewClient 5.1.1 比较图像以下是我编写的代码,但它总是在打印两个图像都不相同。这是使用 sameAs 函数的正确方法吗?如果不能,请告诉我正确的使用方法。
在使用monkeyRunner时,我们用来加载图像..我们是否也必须加载新版本。
python - 使用 Android 视图客户端在 Android 设备上播放视频的 Takin 屏幕截图
在 monkeyrunner 工具中使用 Android 视图客户端拍摄快照非常简单。我的问题是 > 我正在使用 Android TV 。我正在自动化一个应用程序来安装频道。现在我的电视有不同的屏幕显示 (OSD),其中 android 应用程序显示在不同的 OSD 上,视频在另一个 OSD 上播放。
当我拍摄快照时,我得到空白图片,很可能是因为 OSD 问题。
如果有任何方法可以截取视频的屏幕截图,任何人都可以建议我。
如果我不够清楚,请告诉我。
谢谢
python - AVC adbclient 操作失败并出现 RuntimeError
我有一个简单的代码片段,如下所示,使用 AVC 对 Nexus3 手机执行一些顺序操作。
在 touch() 之前使用 takeSnapshot() 代码,touch() 失败,出现以下异常:
但是如果我删除了 takeSnapshot(),下面的 2 touch() 就会成功。我正在使用最近的 AVC 版本。我在这里忽略了什么吗?
android - AndroidViewClient remove package and broadcastreceiver
I am using the AndroidViewClient library, and it works perfectly fine. I want to know how do I remove a package and access the methods listed here:
http://developer.android.com/tools/help/MonkeyDevice.html
I tried using MonkeyRunner but androidviewclient doesnt support it anymore and shows an import error.
Is there any means to use the methods listed in the link ? Here is my code :
I get the following error :
androidviewclient - 等待 androidviewclient 上的特定视图
我正在使用 dtmilano 的 androidviewclient,它工作得很好。
我需要知道如何等待特定视图出现在屏幕上然后采取行动?
我正在使用 getandroidview() 但无法理解其正确实现。
请帮助我解决这个问题。