AndroidViewClient is a 100% pure python library and tools that simplifies test script creation and android test automation, providing higher level operations and the ability of obtaining the tree of Views present at any given moment on the device or emulator screen and perform operations on it. Test script creation can be even further simplified and automated by using Culebra.
Questions tagged [androidviewclient]
203 questions
1
vote
1 answer
Is there a way to see the virtual keyboard presented and how can I close it with AndroidViewClient?
After typing a text on some field (automatically with AndroidViewClient) the virtual keyboard remains on my device screen.
If I make a dump with the culebra script on this step I do not receive views related to this virtual keyboard but I receive…

Prophet
- 32,350
- 22
- 54
- 79
1
vote
2 answers
Delay between "type" commands in AdbClient (which doesn't exist in monkeyrunner)
I am making a switch from monkeyrunner to AndroidViewClient. It is nice because it is all Python. However, when issuing type or press commands, the lag between each command is like one second:
import sys
import os
import time
try:
…

Micro
- 10,303
- 14
- 82
- 120
1
vote
0 answers
self.socket.recv() wrong reading in adbclient.py while trying to run it on Python 3
I'm trying to run some AndroidViewClient example file (dump-simple.py) with Python 3.3
I fixed all essential syntax issues I could in viewclient.py and adbclient.py files to convert them run on Python 3.
I have Android tablet USB connected to my PC,…

Prophet
- 32,350
- 22
- 54
- 79
1
vote
1 answer
Is any way to get internal html textboxes,buttons names or ids in webview using monkeyrunner in Android
I am using monkeyrunner dump -VF option to list all ids and positions too. Now I need all ids and names of controls in webview control. Is it possible to get it using monkeyrunner or how to fetch those controls too.
user2756875
1
vote
1 answer
Scrolling List using Android View Client(DTmilano)
I am looking forward to scroll a list with the help of Android view client(dtmilano) .The list has 109 elements and only 10 are visible. So i need to scroll down and again perform vc.dump .
Kindly guide with a sample python code to perform scroll…

Arush
- 13
- 5
1
vote
1 answer
How to touch/press a button/View using AndroidViewClient?
I have an app, for which i wanna run Monkeyrunner (using Android ViewClient)
I am trying to define my view as
Vc = ViewClient(device, serialno)
vc.dump
touchProject = vc.findViewByIdorRaise('id/projectNewGallery')
touchProject.touch()
But I am…

Hassan
- 98
- 2
- 11
1
vote
1 answer
androidviewclient work wrong after device.drag((200,350),(200,150))
my problem is after:
device.drag((200,350),(200,150))
MonkeyRunner.sleep(6)
vc.dump()
My test stops working. Does anyone know of a command I can use instead of vc.dump()? I need a command after device.drag((200,350),(200,150)) that will allow my…

user2378438
- 11
- 1
1
vote
1 answer
AndroidViewClient does not show id
I've been toying around with AndroidViewClient for a little while, but I don't get why this extension will not show the id of a view when running the dump.py example. My device is above API lvl 16. What could be the problem?
I get an output like…

EGHDK
- 17,818
- 45
- 129
- 204
1
vote
1 answer
Integrating Monkeyrunner with UI Automator
Is it possible to integrate monkey runner with UI Automator. I have imported the Monkeyrunner jar in UI Automator project.But when I run
ant build
Build Fails as it does not recognise any of the Classes.
Is their any other method to recognise…

Rohit Jindal
- 679
- 1
- 10
- 21
0
votes
0 answers
How can I send input events like taps or swipe to Android with Python if ADB doesn't work?
I'm making a script in Python that simulates taps in my device's screen, I use ADB usually but with a game (Clash of Clans), ADB commands doesn't work, I assume that has some anticheat, with screen mirroing using Scrcpy mouse inputs works fine, this…

ManoloPutoAmo
- 1
- 1
0
votes
1 answer
Ez_Setup error 'AttributeError: module 'collections' has no attribute 'MutableMapping''
I downloaded the script ez-setup (https://bootstrap.pypa.io/ez_setup.py). But whenever I try to run it I get the error "AttributeError: module 'collections' has no attribute 'MutableMapping'" how can I fix it?
I already tried to reinstall python…

Kjell Köcher
- 11
- 1
0
votes
1 answer
How to perform multi touch using Culebratester-Client?
I've succeeded to perform a quick tap using Culebra-Client by following code from this stackoverflow answer. But I still don't understand how to perform multiple touch
0
votes
1 answer
AndroidViewClient: unable to dump correctly the view
I'm trying to use CulebraTester2 to dump the Window hierarchy. I'm testing an app where the text of some TextView changes: the first time I call dumpWindowHierarchy the obtained JSON content corresponds to the text shown, when the text changes and I…

silverIT
- 11
- 3
0
votes
1 answer
AndroidViewClient: How to know we completely drag screen till the end
I want to send a message to all friends using IDs, my screen show only 12 IDs at a time. here I'm collecting all IDs in a list and sending messages to all 12 IDs, now I'm clear the IDs list and dragging the screen. now pick up the new IDs.
So, I…

Shashi Kumar
- 1
- 1
0
votes
1 answer
How to scroll android screen by AndroidViewClient
Currently, I'm working on Snapchat and I want to scroll the screen slightly
1.device.vc.dump()
2.device.vc.findViewByIdOrRaise("com.snapchat.android:id/neon_header_avatar_container").touch()
3.device.vc.dump()
Now I want to scroll the screen to…

Shashi Kumar
- 1
- 1