I have a button with a tag value. Tag Value = "fix string" + int. I need to see if the button is displayed and then save the value and click on it.
onView(withTagValue(`is`("^fixString".toRegex()))).check(matches(isDisplayed())).perform(save value)
onView(withTagValue(`is`("^fixString".toRegex()))).check(matches(isDisplayed())).perform(click())
The code doesn't find any view. I think the regex is ignored and I don't know how to save the value.
Any idea?