mirror of
https://github.com/appium/appium.git
synced 2026-05-19 09:58:54 -05:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user