cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-12501) Don't use XPath selectors in Camera Appium tests for Android
Date Mon, 27 Feb 2017 09:31:45 GMT

    [ https://issues.apache.org/jira/browse/CB-12501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15885437#comment-15885437
] 

ASF subversion and git services commented on CB-12501:
------------------------------------------------------

Commit 4fc25154f31204cb526dbd505c965fea1fd8b0b8 in cordova-plugin-camera's branch refs/heads/master
from [~alsorokin]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-camera.git;h=4fc2515 ]

CB-12501 (Android) Appium tests don't use XPath selectors anymore


> Don't use XPath selectors in Camera Appium tests for Android
> ------------------------------------------------------------
>
>                 Key: CB-12501
>                 URL: https://issues.apache.org/jira/browse/CB-12501
>             Project: Apache Cordova
>          Issue Type: Test
>          Components: Appium, Plugin Camera
>            Reporter: Alexander Sorokin
>            Assignee: Alexander Sorokin
>              Labels: triaged
>
> Currently Appium tests use XPath selectors, which are sloppy and buggy. For example,
we are forced to select certain elements quite a few times in a row to get the one that we
need:
> {noformat}
> return driver
>     .waitForElementByXPath('//android.widget.TextView[@text="Gallery"]', 20000)
>     .elementByXPath('//android.widget.TextView[@text="Gallery"]') // multiple calls here
for an Android bug:
>     .elementByXPath('//android.widget.TextView[@text="Gallery"]') // on Windows + Android
emulator, element selection
>     .elementByXPath('//android.widget.TextView[@text="Gallery"]') // is completely wonky.
Unfortunately duplicating element()
>     .elementByXPath('//android.widget.TextView[@text="Gallery"]') // calls is the only
workaround identified thus far.
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message