calabash / calabash-android-server

Automated Functional testing for Android based on cucumber
Other
28 stars 41 forks source link

how to support custom TextView #81

Open catfishuang opened 5 years ago

catfishuang commented 5 years ago

com.dianping.picasso.view.PicassoTextView extend com.dianping.richtext.BaseRichTextView; extend android.support.v7.widget.AppCompatTextView extend android.widget.TextView

query("* marked:'a name'"), can not find the element

any way to support the custom TextView ? modify the WILDCARD branch ?

public static UIQueryAST uiQueryFromAst(CommonTree step) { String stepType = UIQueryParser.tokenNames[step.getType()]; switch (step.getType()) { case UIQueryParser.QUALIFIED_NAME: return UIQueryASTClassName.fromQualifiedClassName(step.getText()); case UIQueryParser.NAME: return UIQueryASTClassName.fromSimpleClassName(step.getText()); case UIQueryParser.WILDCARD: return UIQueryASTClassName.fromQualifiedClassName("android.view.View");