File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
src/main/java/io/appium/java_client/pagefactory Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,18 @@ By getBy(Annotation annotation) {
8888By getBy (Annotation annotation ) {
8989return By .xpath (getValue (annotation , this ));
9090}
91+ },
92+ BYLINKTEXT ("linkText" ) {
93+ @ Override
94+ By getBy (Annotation annotation ) {
95+ return By .linkText (getValue (annotation , this ));
96+ }
97+ },
98+ BYPARTIALLINKTEXT ("partialLinkText" ) {
99+ @ Override
100+ By getBy (Annotation annotation ) {
101+ return By .partialLinkText (getValue (annotation , this ));
102+ }
91103};
92104
93105private final String valueName ;
Original file line number Diff line number Diff line change 2121String className () default "" ;
2222String tagName () default "" ;
2323String xpath () default "" ;
24+ String linkText () default "" ;
25+ String partialLinkText () default "" ;
2426}
You can’t perform that action at this time.
0 commit comments