diff --git a/lib/devices/android/android-controller.js b/lib/devices/android/android-controller.js index d294e6856..be706d49b 100644 --- a/lib/devices/android/android-controller.js +++ b/lib/devices/android/android-controller.js @@ -131,7 +131,8 @@ androidController.submit = function (elementId, cb) { }; androidController.getName = function (elementId, cb) { - this.proxy(["element:getName", {elementId: elementId}], cb); + var p = {elementId: elementId, attribute: "className"}; + this.proxy(["element:getAttribute", p], cb); }; androidController.getText = function (elementId, cb) {