0

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?

Halil Ozel
  • 2,482
  • 3
  • 17
  • 32
Laura
  • 1

0 Answers0