← Back to team overview

sikuli-driver team mailing list archive

[Question #694188]: sikulix 2.0.4 adb screenshot always starting at position 0, 0 // how to search for images on android devices

 

New question #694188 on Sikuli:
https://answers.launchpad.net/sikuli/+question/694188

Hello,

thanks for Sikuli, it is a great tool and i use it for years.

I started trying to work on an android device, using Sikuli 2.0.4 and the experimental adb support.

I can connect and take screenshots of the device screen fine but when i try to capture an image to re-use it for actions like clicks, the following happens:

* dialog opens asking if i want to capture on the android device
* when i select yes, the android screen is displayed in a popup window
* when i try to define a region of interest by clicking on the popup window, it will automatically drag from the top left corner (i assume its position 0,0) to the point i clicked. instead of letting me define the region of interest rectangle

if i instead save a screenshot of the device to my computer and then try to do a capture on it, it is also not working:

* dialog opens asking if i want to capture on the android device
* i select no but instead of being able to capture on my local device, a small blue stripe is saved as an image immediatelly

if i try to crop the saved screenshot to the region of interest and then provide it as in click("image.png") the image is not found on the android screen (although it is visible)

how could i go about that and define images to click and search for?

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.