zzwendy / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

Cannot click on Button while a Toast is visible #633

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
To reproduce this issue, an EditText and a Button are needed (like a Login 
form, for example). Also, a Toast should be shown at a given moment.
The Robotium test should:
1. Open the Activity
2. Enter some text in the EditText
3. Wait for the Toast to appear
4. While the Toast is vissible, call solo.clickOnButton(BUTTON) or 
solo.clickOnView(myButton);

What is the expected output? What do you see instead?
The Button is never clicked, and the test times out.

What version of the product are you using? On what operating system?
robotium-solo:5.2.1, Android 4.2.2, Win 7 64, Android Studio 0.8.6

Please provide any additional information below.

Original issue reported on code.google.com by juanmou...@gmail.com on 19 Sep 2014 at 4:15

GoogleCodeExporter commented 9 years ago
Thanks for reporting this. This behaviour is according to design (due to how 
Android works). When a toast has focus its not possible to interact with other 
views. The best is to wait for the toast to dissappear before clicking. 

Original comment by renasr...@gmail.com on 22 Sep 2014 at 9:35