openatx / android-uiautomator-server

MIT License
252 stars 145 forks source link

textMatches multiline does not match #43

Open serhatozles opened 4 years ago

serhatozles commented 4 years ago

if ((getMask() & Selector.MASK_TEXTMATCHES) > 0) { if (s == null) s = By.text(Pattern.compile(getTextMatches())); else s = s.text(Pattern.compile(getTextMatches())); }

I checked this line, I found some articles for this: https://stackoverflow.com/questions/3651725/match-multiline-text-using-regular-expression

Can you please fix this?

mingyuan-xia commented 4 years ago

A PR would be welcomed.