RobotiumTech / robotium

Android UI Testing
http://www.robotium.org
Apache License 2.0
2.86k stars 786 forks source link

Case-insensitive view search #785

Open jlhonora opened 9 years ago

jlhonora commented 9 years ago

I'm trying to use solo.clickOnMenuItem("Foo") wether "Foo" has textAllCaps (Lollipop) or not.

Since the string argument is supposed to be used along with a regex matcher, I tried using the case-insensitive regex flag: solo.clickOnMenuItem("(?i)Foo");, but that doesn't work either.

Any ideas on how to do that?