sangmingming / robotium

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

How to handle unexpected alerts in Robotium #203

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.solo.clickOnButton(S_BUTTON);
solo.clearEditText(0);
solo.enterText(0, GPData.USERID);       
solo.enterText(1, GPData.PWD);
//If i get the unexpected after the above statement, robotium is not able to 
handle that alert it does nothing..
solo.clickOnButton(SIGN_IN_BUTTON);
2.
3.

What is the expected output? What do you see instead?
There should be some mechanism in Robotium to handle the unexpected alerts.

What version of the product are you using? On what operating system?
Robotium 3.0

Please provide any additional information below.

Original issue reported on code.google.com by alpatisu...@gmail.com on 6 Jan 2012 at 10:33

GoogleCodeExporter commented 9 years ago
The issue is that Robotium can not know that it is an unexpected alert. 
Therefore no mechanism can be built in as it can not know if an alert is 
excepted or not. 

Original comment by renasr...@gmail.com on 6 Jan 2012 at 7:47