File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
src/test/java/io/appium/java_client/pagefactory_tests Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,12 @@ public class SelendroidModeTest {
6565
6666 @ SelendroidFindBy (tagName = "TextView" )
6767 private WebElement textTag ;
68+
69+ @ SelendroidFindBy (linkText = "Accessibility" )
70+ private WebElement textLink ;
71+
72+ @ SelendroidFindBy (linkText = "ccessibilit" )
73+ private WebElement textPartialLink ;
6874
6975@ Before
7076 public void setUp () throws Exception {
@@ -140,9 +146,21 @@ public void findByElementByCalssTest() {
140146 public void findByElementByTagTest () {
141147 Assert .assertNotEquals (null , textTag .getAttribute ("text" ));
142148 }
149+
143150 @ Test
144151 public void findBySelendroidAnnotationOnlyTest () {
145152 Assert .assertNotEquals (null , textSelendroidId .getAttribute ("text" ));
146153 }
154+
155+ @ Test
156+ public void findBySelendroidLinkTextTest () {
157+ Assert .assertEquals ("Accessibility" , textLink .getText ());
158+
159+ }
160+
161+ @ Test
162+ public void findBySelendroidPartialLinkTextTest () {
163+ Assert .assertEquals ("Accessibility" , textPartialLink .getText ());
147164
165+ }
148166}
You can’t perform that action at this time.
0 commit comments