Merge pull request #867 from zijie0/master

Fix Android XPath issue.
This commit is contained in:
bootstraponline
2013-07-10 10:08:27 -07:00
@@ -42,7 +42,9 @@ public class AndroidElementClassMap {
throw new UnallowedTagNameException(selector_text);
} else {
final String mappedSel = inst.map.get(selector_text);
if (mappedSel != null) {
if ("view".equals(selector_text)) {
return "android.view.View";
} else if (mappedSel != null) {
return "android.widget." + mappedSel;
} else if (selector_text.contains(".")) {
return selector_text;
@@ -61,6 +63,7 @@ public class AndroidElementClassMap {
map.put("absseek", "AbsSeekBar");
map.put("absspinner", "AbsSpinner");
map.put("absolute", "AbsoluteLayout");
map.put("adapterview", "AdapterView");
map.put("adapterviewanimator", "AdapterViewAnimator");
map.put("adapterviewflipper", "AdapterViewFlipper");
map.put("analogclock", "AnalogClock");