enable apppium to tapping on UITableViewCell

tapping UITableViewCell using UI Automation does not work and it is a known bug with apple, work around for tapping on UITableViewCell is using the element coordinates and added that to appium
This commit is contained in:
hannes
2013-09-04 15:46:32 +01:00
committed by Jonathan Lipps
parent 2c5daf4978
commit 688f0c0d77
+8 -4
View File
@@ -193,10 +193,14 @@ $.extend(au, {
// element may still be null.
element.tap();
} catch(e) {
return {
status: codes.UnknownError.code,
value: 'elementId ' + elementId + ' is null and can\'t be tapped.'
};
try {
target.tap(element.rect());
} catch(e2) {
return {
status: codes.UnknownError.code,
value: 'elementId ' + elementId + ' is null and can\'t be tapped. ' + e + ', ' + e2
};
}
}
return {
status: codes.Success.code,