I want to convert string type into int. I am doing automation using espresso.
As per espresso automation syntax for clicking on object, onView(withid(R.id.btn_0).perform(click())
I have json file, where I have stored the object,
"btn_0": {
"ANDROID": "withId=R.id.btn_0"
}
Now, when I read btn_0, i get string value for the btn_0 object and withId() takes int.
Note: Integer.parseInt() will not work.
Can anyone help me with this?