Questions tagged [androidviewclient]

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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
317 views

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 ...
ManoloPutoAmo's user avatar
0 votes
1 answer
97 views

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'"...
Kjell Köcher's user avatar
0 votes
1 answer
196 views

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
Muhammad Lutfi Rahmawan's user avatar
1 vote
1 answer
386 views

How to start culebratester2 server on more than one device?

I want to start culebratester2 server on multiple devices at the same time in order to use uiautomatorhelper with AndroidViewClient in Python to test the same app on many devices. I don't know if it ...
silverIT's user avatar
0 votes
1 answer
269 views

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 ...
silverIT's user avatar
1 vote
1 answer
3k views

How to make adb tap fast (ADB+Python)

So I made a bot for a singleplayer android game, using python and adb. The biggest problem is that between each tap there is like a 1 second delay. I connect to the device like this - from ppadb....
Ran42's user avatar
  • 60
0 votes
1 answer
96 views

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 ...
Shashi Kumar's user avatar
0 votes
1 answer
411 views

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() ...
Shashi Kumar's user avatar
0 votes
1 answer
436 views

Not being able to import AndroidViewClient

I was trying to use the AndroidViewClient in Windows and Linux machine. So I Installed the package via pip: pip3 install androidviewclient then I created a simple python script which simply imports ...
zambs's user avatar
  • 31
0 votes
1 answer
491 views

ValueError: received does not contain valid XML: Killed

When I try to dump my device or execute Culebra GUI, it appears the following error: Traceback (most recent call last): File "C:/Python27/Scripts/dump", line 4, in import('pkg_resources')....
Iván Santos Domínguez's user avatar
1 vote
0 answers
48 views

Culebra stuck with "Touching Point (units=DIP)"

I am trying to create tests on a device using Culebra. I gave the command >python culebra -uUG -P 0.25 -o myscript.py Exception AttributeError: "'PhotoImage' object has no attribute '...
Mooncrater's user avatar
  • 4,314
0 votes
1 answer
40 views

How can I run a command using python2 as the interpreter if I have Anaconda 3?

Im trying tto emulate an android device on my linux computer. I decided to go with androidviewclient and Culebra. However, I think both are designed for python2, because when I run culebra --version ...
Qwertford's user avatar
  • 1,079
1 vote
0 answers
270 views

Using python script to get fps from device

I'm attempting to get a plotted graph for fps from dtmilano using his script https://medium.com/@dtmilano/analyzing-android-ui-performance-52beb577c421 #! /usr/bin/env python # -*- coding: utf-8 -*- ...
Pseebee's user avatar
  • 11
1 vote
1 answer
240 views

Why is Android View Client returning the view above the view I'm trying to select?

(Edit: the following problem only seems to occur on my Samsung S10e. I just got home and tried Android View Client on a Pixel phone and I'm not having any problem.) I'm automating the input process ...
Rivers Cuomo's user avatar
0 votes
1 answer
40 views

How to detect scrollable layouts on main view using culebra GUI

I am trying to record steps for running a UI test using Culebra but I am unable to get items from bottomsheet layout opened on the main view in my app. I have tried clicking on the option but the ...
Priyanka Gupta's user avatar
0 votes
1 answer
337 views

How to set the environmental variable for AndroidViewClient?

I have monkeyrunner set up and am trying to set up AndroidViewClient as well. I followed the tutorial at https://github.com/dtmilano/AndroidViewClient/wiki, doing a pip install, and added the env path ...
Arun Pingali's user avatar
0 votes
1 answer
320 views

Python - AndroidViewClient take snapshots in high FPS

I wanted to take snapshots of my device in 60 FPS using AndroidViewClient on Python, so I used the function device.takeSnapshot(reconnect=True) in a loop to do so. However, it appeared that the time ...
iheb meddeb's user avatar
0 votes
1 answer
223 views

How can I get text if I have x,y coordinates using Androidviewclient

I have x = 402 and y=201 I need to get text available at that specified coordinates using Androidviewclient can anyone help in solving this issue
Raghu vamshi Mandala 's user avatar
0 votes
1 answer
52 views

AndroidViewClient - How to get notified when the Android Virtual Device start process is completed?

I use AndroidViewClient in order to use MonkeyRunner through Python. I need to start the AVD programmatically and get notified when the AVD start process is completed. How can I catch that event? The ...
talha06's user avatar
  • 6,296
1 vote
1 answer
9k views

How to control your Android/iOS device with python?

I am looking to control my mobile devices that are plugged into MAC/PC via usb. Specifically, I want to turn "Airplane Mode" on and off using just python codes. My bad solution to control the ...
hyukkyulee's user avatar
  • 1,104
-1 votes
1 answer
64 views

Is there a replacement for time.sleep() in the given script?

The below script connects the android device to Wi-Fi and register with existing account. import re import sys import time import os from PIL import Image from com.dtmilano.android.viewclient ...
Josh's user avatar
  • 57
0 votes
1 answer
1k views

AndroidVIewClient-How to run a python script simultaneously in multiple devices

I have created a python script to complete the initial setup of a device and I am able to run it in single device. I want to run the same script in multiple devices. I have provided the code below, ...
Josh's user avatar
  • 57
0 votes
1 answer
206 views

How to make multi-devices dump with AndroidViewClient/dump command?

I'd like to compare the screen of my devices (many) so I'm using AndroidViewClient tool to get the hierarchy of my screens with the dump command in a terminal. However, my devices are all linked with ...
Johann Andersen's user avatar
1 vote
1 answer
349 views

how to re-run java (UI automator/python) script recorded using culebra tester

I have python 2.7, android view client, adb environment setup in my PC. Also I have connected my android device with culebra tester installed in it and performed some Test case steps to record script (...
Josh's user avatar
  • 57
0 votes
0 answers
200 views

How to check when content are loaded in a webview with AndroidViewClient?

I have an app which uses a WebView to display the content. The problem is that the AndroidViewClient dump produces the same results with only a WebView id whether the page is loaded or not therefore ...
AbrtFus's user avatar
  • 29
0 votes
1 answer
326 views

AndroidViewClient get id's from WebView

I have Samsung Android 4.3 API 18 and using AndroidViewClient, the dump produces only android.webkit.WebView therefore it's not possible to get all the id's within this page. How Can I use Culebra to ...
AbrtFus's user avatar
  • 29
1 vote
1 answer
211 views

Culebra GUI is working very slowly

Hi I am using Androidviewclient culebra tester in my windows 7 os , for starting culebra I am launching from command prompt as python culebra -G , culebra GUI started but taking long time to refresh ...
Raghu vamshi Mandala 's user avatar
0 votes
0 answers
65 views

View Client Dump CPU Usage

I'm using Android View Client dump() via Python to pull Views off of an Android device to verify Views for my app that I'm testing. I am attempting to fix someone else's test code so some things are ...
That Guy Called Austin's user avatar
0 votes
1 answer
169 views

CULEBRA: Empty device list

I want to create a AVD using Culebra and ADB, but I think that isn't the correct way, maybe I need to use SKD Android. OS: Windows 10 ADB is running: netstat -an | findstr 5037 TCP 127.0.0.1:...
Shinomoto Asakura's user avatar
0 votes
2 answers
162 views

How can I simulate long press on a view (for example Hardkey for 10 sec) using AndroidViewClient?

How can I long press a hard key or keyevent for 20 seconds . Below is my code longPress hardkey for 10 seconds device. longPress(‘KEYCODE_CALL’ , 10) Please anyone can help me for solving this ...
Raghu vamshi Mandala 's user avatar
0 votes
1 answer
83 views

Could AndroidViewClient still work well with Monkeyrunner?

I'm using AndroidClientView to do automated test. I found when the phone came into a new page, ViewClient should dump the whole view. I guess if there is a way to speed up the test process, such as ...
Ye18's user avatar
  • 1
0 votes
1 answer
157 views

AndroidViewClient/culebra restrict GUI execution to app

I am using culebra concertina mode inside AndroidViewClient to run automatic GUI tests with app. But what I am seeing is this tool sometimes presses home button and my app exits and thus no longer ...
rainyday's user avatar
  • 363
-1 votes
1 answer
319 views

Adb issue in androidviewclient

J have a issue with ADB. I execute a python script lasting about 10 hours, but often the script crashes with message "Is adb running on your computer?". To resolve this issue, I update adb with "adb ...
Search solution's user avatar
0 votes
0 answers
70 views

androidviewclient CalledProcessError

I am trying to run a simple script that contains the following code snippet: from com.dtmilano.android.viewclient import ViewClient device, serialno = ViewClient.connectToDeviceOrExit() vc = ...
GAN's user avatar
  • 85
0 votes
1 answer
209 views

How to Run Code on Android Generated by AndoirdViewClient?

Through the CulebraTester application on my device, I generated some python to simply open the settings application. When I went to run the script, I was greeted with pkg_resources....
go_easy's user avatar
0 votes
1 answer
472 views

Culebra in AndroidViewClient returns "RuntimeError: ERROR: Connecting to <socket... [Errno 111] Connection refused

Trying to use any culebra (AndroidViewClient) command returns following error: $culebra -G Traceback (most recent call last): File "/usr/local/bin/culebra", line 4, in import('pkg_resources')....
Bob's user avatar
  • 1
0 votes
1 answer
96 views

Is ViewClient invalid if new Activity is started?

I have an AndroidViewClient script that is testing an activity. Clicking a button in my android app creates a new Activity instance. It seems like the ViewClient instance in my python script needs to ...
user3203425's user avatar
  • 2,959
0 votes
1 answer
358 views

Get current activity name and package?

I have a button which launches a new Activity. Is there an API in AndroidViewClient to get the package and name of the current activity? Something like: view.click() # starts a new activity ...
user3203425's user avatar
  • 2,959
0 votes
1 answer
159 views

What are the parameters in device.drag method in AndroidViewClient?

what does the orientation parameter in the drag method do? Also when I change the duration and/or steps, it does not make that much difference vc.device.drag(start, end, duration, steps, orientation)...
Sina Prghdrt's user avatar
0 votes
1 answer
470 views

Where can I find AndroidViewClient documentation?

Is there any documentation on AndroidViewClient covering public classes, methods, and syntax?
Sina Prghdrt's user avatar
1 vote
1 answer
290 views

How can I get the attribute in androidviewclient

How can I get the dump attribute in androidviewclient. for example, I want to get the attribute value of 'selected'.Please help!! android attribute
Huang Zheng's user avatar
0 votes
1 answer
206 views

Culbera: Selecting things from dropdown list in an Android app

I am trying to test a drop down list with Culbera. My menu structure is as follows Main Page -- Program - Setup - Arm - Torque -- Test Now Arm displays (makes ...
liv2hak's user avatar
  • 14.6k
0 votes
1 answer
571 views

Pressing buttons by 'text' on Android app using Culebra

I have a Android App that I am trying to test using culebra. The code is shown below. '''reated on 2017-02-08 by Culebra v12.5.3 __ __ __ __ / \ /...
liv2hak's user avatar
  • 14.6k
0 votes
1 answer
567 views

Is it possible to automate android without enabling USB debugging?

I need to connect Android phone to my DUT through USB and I have to connect and disconnect the device, and I need to send/receive data from phone to DUT through phone UI, To automate this I have used ...
parameshwar reddy's user avatar
0 votes
1 answer
772 views

How to scroll by an exact number of pixels in AndroidViewClient or via any other programmatic method

So far I was only able to use the adb shell input touchscreen swipe approach using adb, and the device.drag() method from AndroidViewClient. Both, though, take "speed" as a parameter, and ...
Dakatine's user avatar
  • 2,744
0 votes
1 answer
618 views

How to clear dump (AndroidViewClient/Culebra) data from memory?

I'm running an automated test script using AndroidViewClient. I do several dumps in the script. The script is used for a speed/response time test on an android device and the test is run for n>300. I ...
Sina Prghdrt's user avatar
1 vote
1 answer
134 views

AndroidViewClient: view not found error

I am trying to search a video in youtube using AndroidViewClient. package = 'com.google.android.youtube' activity = 'com.google.android.apps.youtube.app.WatchWhileActivity' component = package + "/" ...
Vikash Balasubramanian's user avatar
2 votes
1 answer
772 views

What are some of the disadvantages of AndroidViewClient/Culebra over Espresso for Android GUI Automated Testing?

I've been using AndroidViewClient for a couple of months now and I like it so far, it's simple and a pretty powerful tool. I'm trying to develop an automated testing platform for more extensive and ...
Sina Prghdrt's user avatar
0 votes
1 answer
70 views

Is there any Timer () or Clock () function in AndroidViewClient?

I'm using Androidviewclient for black-box testing of a GUI and I need to record the response time of a button; for example I need to know how long it takes for the next screen to appear from the time ...
Sina Prghdrt's user avatar
0 votes
1 answer
187 views

How to run Genymotion with android view client? [closed]

I am running my app in genymotion emulator, am trying to access the app from android view client python library, but can't seem to find a way to access it. View client only takes port for access, so i ...
Ankit Arora's user avatar

1
2 3 4 5