Closed GoogleCodeExporter closed 9 years ago
Unfortunately it is not possible to know if a dialog is open or not. The way in
which waitForDialogToClose works is by checking if any (not a particular)
rootview is removed from the stack.
Original comment by renasr...@gmail.com
on 22 Dec 2012 at 7:19
Hey, in that case, there could be an API like:
anyDialogOpen(), which returns true or false depending on the fact if there is
any dialog that is open or not.
OR
getOpenDialog() which returns the top most dialog or false and then, we query
things like: dialog.text, dialog.buttons etc etc.
IMHO, the implementation for this could be quite similar to
waitForDialogToClose.
I find the usage of either of the above mentioned APIs useful in cases when we
are expecting multiple dialogs and might not be sure of the order they appear.
Original comment by aseem.sh...@gmail.com
on 22 Dec 2012 at 7:29
Lets see what we can do.
Original comment by renasr...@gmail.com
on 22 Dec 2012 at 12:02
Yeah, I was aware of how waitForDialogToClose() is implemented and that it does
not really check for dialogs. But still a waitForDialogToOpen() that waits for
the number of decor views to increase would be helpful in case you know nothing
else than a dialog popping up will happen.
Original comment by sschuberth
on 23 Dec 2012 at 8:55
Thanks for the suggestion. Will include this in the next release.
Original comment by renasr...@gmail.com
on 24 Dec 2012 at 6:34
This has been included in Robotium 4.0.
Original comment by renasr...@gmail.com
on 27 Feb 2013 at 6:24
Could you please list the APIs to check if a dialog is opened and obtain the
details of the opened dialog.
Thanks
Original comment by Chrong.F...@gmail.com
on 19 Mar 2015 at 4:05
Original issue reported on code.google.com by
sschuberth
on 20 Dec 2012 at 10:49