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
0
votes
1 answer
How to record an image in the screen with androidviewclient/culebra for android emulator
I am using AndroidViewClient/Culebra to generate scripts. The screen contains an image I would like to save to disk. The image is not clickable. How can I record it automatically with AndroidViewClient/Culebra ? Or should I manually find the view of…

tuan dat nguyen
- 21
- 4
0
votes
2 answers
AndroidViewClient UIAutomator Errors On Symbols
I am using AndroidViewClient and its works flawlessly .
The only issue I am facing is that whenever the screen has symbols like <3 or any smileys , it throws an UIAutomator was killed no error given .
How to solve this error ?

Kshitij Sharma
- 49
- 7
0
votes
1 answer
Implement infinite scrolling in Androidviewclient
I am trying to implement Androidviewclient 5.1.1 for app which has implement scrolling of listitems. I want to scroll upto the point all the entries of the list have been finished.
That is scrollable becomes FALSE.
How should I proceed to do this…

Kshitij Sharma
- 49
- 7
0
votes
1 answer
Setting up AndroidViewClient on Windows 8 gives Raise AttributeError
I have downloaded the .zip from https://github.com/dtmilano/AndroidViewClient which is version 5.1.1
.
I have added ANDROID_VIEW_CLIENT_HOME=/path/to/AndroidViewClient
and PYTHONPATH=/path/to/AndroidViewClient/src .
Now when i run python…

Kshitij Sharma
- 49
- 7
0
votes
1 answer
Does the AndroidViewClient has the similar usage device.getHierarchyViewer().focusedWindowName?
When we use MonkeyRunner to do the Android UI analysis, we can use the device.getHierarchyViewer().focusedWindowName to get the current screens' window name quickly.
Then we can use the window name to do some basic UI judgement or analysis.
And for…

Chris Forever
- 678
- 1
- 5
- 18
0
votes
1 answer
AndroidViewClient dump animated view
One of the view is constantly refreshing (a SeekBar for music progress)
When I try to make a dump, I got this error:
RuntimeError: The views are being refreshed too frequently to dump.
Is it possible to freeze the app while the dump is not finished,…

Benoit
- 1,922
- 16
- 25
0
votes
0 answers
AndroidViewClient serialno error
I'm testing various smartphones using AndroidViewClient.
To prevent connection errors, I used connection options(kwargs1, kwargs2) as follows.
from com.dtmilano.android.viewclient import *
from com.dtmilano.android.adb.adbclient import *
kwargs1 =…

Kwangsoo
- 1
0
votes
1 answer
Android View Client not working
Per instructions:
sudo easy_install --upgrade androidviewclient
output of that command includes:
Installed /Library/Python/2.7/site-packages/androidviewclient-8.13.1-py2.7.egg
However when I try to use it in a monkeyrunner python script I get…

superstar3000
- 389
- 5
- 16
0
votes
1 answer
AndroidViewClient: giving import error
I’ve downloaded from git the latest version AndroidViewClient.
I did the easy_install method but I get
~/projects/AndroidViewClient-master/AndroidViewClient $ monkey runner examples/check-import.py
141022 11:55:48.708:S [main]…

Damon Hermann
- 23
- 3
0
votes
0 answers
Simulate a long press on a view
I am using AndroidViewClient.
I want to simulate a long press on a view . But unable to do so.
I have gone through :
Long press on a view using AndroidViewClient
Please suggest a solution.

Kshitij Sharma
- 49
- 7
0
votes
1 answer
Not able to setup AndroidViewClient on Windows 7
I referred to the wiki and tried over the internet but could not make it working.
I have set ANDROID_VIEW_CLIENT_HOME to AndroidViewClient folder, PYTHONPATH to AndroidViewClient/src folder.
I am still not able to import the ViewClient and getting…

user846316
- 6,037
- 6
- 31
- 40
0
votes
1 answer
AVC adbclient action failed with RuntimeError
I have a simple code snippet as below using AVC to perform some sequential actions to a Nexus3 phone.
#! /usr/bin/python
import sys, os, time
try:
sys.path.append(os.path.join(os.environ['ANDROID_VIEW_CLIENT_HOME'], 'src'))
except:
…

Shawn Wang
- 13
- 6
0
votes
1 answer
image comaprision by using sameAs function for AndroidViewclient 5.1.1
Hi i am trying compare images with help of AndroidViewClient 5.1.1 following is the code which i have written, but always it is printing Both images are not same. Is this the correct way of using sameAs function? if not could you please let me know…

user3548662
- 29
- 1
- 7
0
votes
1 answer
androidviewclient - Can't connect to the device on vm with port forwarding
I forwarded localhost on vm to host machine with 80 port (8080 ip:80), avc works fine before that and now I have an error with connecting to the device:
import sys
import os
try:
…

user1835337
- 656
- 1
- 9
- 32
0
votes
1 answer
Is there any option in AndroidViewClient to StopTheActivity
Similar to StartActivityOrExit, is there any option to stop or force close a particular activity running.

ASP
- 1
- 3