dimanche 16 février 2020

How do I get an element id text changes?

I have an element text always changes except time format: Ex:

"jorday hekci 4:35pm hello"

"read message 12:05am jack"

"read message 2:35am test"

"I love stackoverflow 4:59pm everytime"

I tried this way and still does not work.

 @AndroidFindBy(uiAutomator = "new 
    UiSelector().className(\"android.Widget.Text\").textMatches(\"((1[0-2]|0?[0-9]):([0-5][0-9]) 
    ([ap][m]))\")
    MobileElement Element; 

Aucun commentaire:

Enregistrer un commentaire