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.

culebra logo

203 questions
0
votes
0 answers

AndroidViewClient: How access a device when more then one device is connected (For AndroidViewclient 5.1.1)

We are having two Android devices connected to PC at the same time. I want to use wake and drag commands. Till now I was using AndroidViewclient version 3.2, which use to work with monkeyrunner. So these function were easily automated. Since there…
user3548662
  • 29
  • 1
  • 7
0
votes
1 answer

AndroidViewClient view.getvisibility() returns -1

When I run following code, although I declare the view as visible, it always returns -1: et = vc.findViewById('com.hamed.android:id/editText1') time.sleep(2) print et.getVisibility() I check getVisibility() method and see that it returns -1 when an…
HaMi
  • 539
  • 6
  • 23
0
votes
2 answers

Long press on a view using AndroidViewClient

How can I simulate long press on a view (for example a button) using AndroidViewClient? The touch method of ViewClient always performs a simple press on its input (even if I set type argument to adbClient.DOWN) Edit: The touch method in adbclient.py…
HaMi
  • 539
  • 6
  • 23
0
votes
1 answer

How to press android Back, Home, and Enter buttons using AndroidViewClient

I am using AndroidViewClient to automate testing of my android application. I need to press android device buttons like 'Home', 'Back', and 'Enter'. How Can I do it?
HaMi
  • 539
  • 6
  • 23
0
votes
1 answer

Get Current Focused Window Name using AndroidViewClient

I am using AndroidViewClient for testing my android application. I need to access name of current focused window. How can I get it?
HaMi
  • 539
  • 6
  • 23
0
votes
0 answers

Alarm clock and ERROR: timed out in Android Viewer Client

I have simple test on AVC in python, that unlock device and launch application. This test runs in the infinity loop and it runs normally, but after some time (hour or two) I got an errors 'Alarm clock' and 'ERROR: timed out'. It looks like: start:…
user1835337
  • 656
  • 1
  • 9
  • 32
0
votes
1 answer

AdbClient error: [Errno 10053] An established connection was aborted

I am getting this error when I issue a device.takeSnapshot() command and device.touch() command: Traceback (most recent call last): File "C:\Users\Me\Desktop\AndroidViewClient_Bots\pytesser\insta_get_list_of _users.py", line 82, in
Micro
  • 10,303
  • 14
  • 82
  • 120
0
votes
1 answer

Can't drag in AndroidViewClient

For some reason no matter what I do I can't issue a 'drag' command to my external android device using AndroidViewClient. Here is my code: import sys import os import time try: …
Micro
  • 10,303
  • 14
  • 82
  • 120
0
votes
1 answer

Setting up AndroidViewClient on Windows 8 - Version Confusion

I used easy_install to install androidviewclient v.5.4.3. I also downloaded androidviewclient-master from here. (which is v.5.1.1 for some reason) My question is, what should I set ANDROID_VIEW_CLIENT_HOME? The path to where I have…
Micro
  • 10,303
  • 14
  • 82
  • 120
0
votes
1 answer

how to simulate long press using AndroidViewClient-5.5.1

i want to simulate long press on power key using AndroidViewClient , i could achieve this using monkeyrunner . code is as follows : from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice device =…
user
  • 65
  • 1
  • 11
0
votes
1 answer

How to find the number of child for a parent in Androidviewclient

I am trying to automate the Bluetooth test cases. After scanning, i wanted to get the list and count of Available and paired devices. Further check weather my ref device name exist in DUT list. Is there any way through which i can display and…
user3548662
  • 29
  • 1
  • 7
0
votes
1 answer

Configure AndroidViewClient and Monkeyrunner on macOSX

I am trying to install AndroidViewClient but there are a lot of problem. I download it on the github of dtmilano. I am on Mavericks an i am new with python.. I know how to use Monkeyrunner but since I download AndroidViewClient, I am totally lost…
Androzr
  • 65
  • 1
  • 10
0
votes
2 answers

`AndroidViewClient` doesn't update disappeared views?

When running my script using AndroidViewClient on some Android application I distinguish a view indicating the application is still loading. I start a While loop with internal delay & refresh like this: while LoadingApp is not None: print…
Prophet
  • 32,350
  • 22
  • 54
  • 79
0
votes
0 answers

In Androidviewclient(version 3.2.0), Is there any api to get unique id for text

I am new to automation in androidviewclient. Please help me by answering following queries: In Androidviewclient(version 3.2.0), Is there any api to get unique id for text. Is there any documentation available for AndroidViewClient (3.2.0…
user3548662
  • 29
  • 1
  • 7
0
votes
1 answer

Androidviewclient not showing the Unique ID's on Android4.4.2 OS

Unique IDs are not getting displayed when devices with Android 4.4.2 Kitkat OS devices.Below is the code I am using from examples. import sys import os # PyDev sets PYTHONPATH, use it try: for p in os.environ['PYTHONPATH'].split(':'): if not p in…