From 4c707ad4e3033a742893814be8a8fcabdb4ba996 Mon Sep 17 00:00:00 2001 From: Payman Delshad Date: Mon, 3 Feb 2014 13:42:04 +0100 Subject: [PATCH] el.tag_name on Android should return element's className. --- lib/devices/android/android-controller.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {