Android - unable to touch/click button off screen
Posted: Fri Jan 23, 2015 2:46 pm
I am working with a native Android mobile app. The app allows you to enter one or two "things". Each "thing" needs multiple information. For example, if I want to enter a car, then I need to enter some information about that car, such as make, model, year (which are all textfields) and other information about the car that are checkboxes. After entering one "thing", there is a textfield asking for additional "things" to add. At this point, I can enter "1" or "2", etc. so that more textfields and checkboxes appear for the number of "things" to add.
At the bottom of this screen is a button that needs to be clicked to evaluate the information added and move to the next screen for results.
If I enter one "thing", I can touch or click the button at the bottom and everything works perfectly.
If I enter two "things", I'm unable to touch or click the button at the bottom. And I can't figure out why.
I've checked the button to see if the xpath changes, but it doesn't. If I highlight the button after entering 2 "things", Ranorex can find it every time.
The button is at the bottom of the screen, and not in view at the time I need to touch/click it. However, it also isn't in view when I enter the first "thing", and Ranorex can touch the button just fine.
I've tried to swipe up so I can make the button visible, but that doesn't help. I've tried to use the Focus() method on the button, and the Click() method, but nothing seems to work.
I think there may be an issue with focus. I think one of the textfields is still in focus (because it looks like the cursor is on the last textfield).
Any suggestions as to how to touch/click this button on the bottom when nothing else works? Or how to get focus on the button?
Thanks!
At the bottom of this screen is a button that needs to be clicked to evaluate the information added and move to the next screen for results.
If I enter one "thing", I can touch or click the button at the bottom and everything works perfectly.
If I enter two "things", I'm unable to touch or click the button at the bottom. And I can't figure out why.
I've checked the button to see if the xpath changes, but it doesn't. If I highlight the button after entering 2 "things", Ranorex can find it every time.
The button is at the bottom of the screen, and not in view at the time I need to touch/click it. However, it also isn't in view when I enter the first "thing", and Ranorex can touch the button just fine.
I've tried to swipe up so I can make the button visible, but that doesn't help. I've tried to use the Focus() method on the button, and the Click() method, but nothing seems to work.
I think there may be an issue with focus. I think one of the textfields is still in focus (because it looks like the cursor is on the last textfield).
Any suggestions as to how to touch/click this button on the bottom when nothing else works? Or how to get focus on the button?
Thanks!