Skip to content

Make View.getXY() work w/ UIAutomator #18

Merged
merged 1 commit into from Sep 7, 2013

3 participants

@mattismyname

UIAutomator xml file returns bounds of view in global (screen) coords,
not relative to parent window(s), view(s), or statusbar. View.getXY() is
adapted to not do coordinate translation when UIAutomator is being used.

Signed-off-by: Matt Gumbel matthew.k.gumbel@linux.intel.com

Matt Gumbel Make View.getXY() work w/ UIAutomator
UIAutomator xml file returns bounds of view in global (screen) coords,
not relative to parent window(s), view(s), or statusbar. View.getXY() is
adapted to not do coordinate translation when UIAutomator is being used.

Tests done:
  4.2.0 nexus phone - sample-ui-toggle-buttons.py
  4.2.0 nexus phone - apidemos-app-alert_dialog-list_dialog-command_three.py
  4.2.0 nexus phone - browser-open-url.py (Fails both with and without patch)
  4.2.0 nexus phone - development-settings-show-running-processes.py (Fails both with and without patch)
  4.2.0 emulator - sample-ui-toggle-buttons.py
  4.0.3 emulator - sample-ui-toggle-buttons.py
  4.0.3 emulator - apidemos-app-alert_dialog-list_dialog-command_three.py
  4.0.3 emulator - browser-open-url.py
  4.0.3 emulator - development-settings-show-running-processes.py

Signed-off-by: Matt Gumbel <matthew.k.gumbel@intel.com>
e252e19
@mattismyname

New commit should be cleaner and includes test results.

@rp123
rp123 commented Sep 6, 2013

I am running into the same issue and this pull request fixes the issues. I would recommend pulling this fix in. 👍

@dtmilano
Owner
@dtmilano dtmilano merged commit e252e19 into dtmilano:master Sep 7, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.