Selenium does not handle certain set of popups. If you are using Selenium then you need to look for integrating another open source tool e.g. Autoit, to start handling those popups with your selenium scripts.
thanks for the RC comands.....
can you plz elaborate a bit on the below commands....
2.assertTrue(selenium.getConfirmation().matches("^Conferm cancel [\\s\\S]$"));
I mean are they the Xpath of the elemnt.....? which properties are they.......
How to click on the Popup which has only "OK" button on it.....
UI Developer here... we have a standard YUI dialog with (submit) and (cancel) buttons, but had trouble testing because of course YUI gives them dynamic IDs and you can't predict the ID. What I did in the .js:
Initialize the dialog...
var myNewDialog = YAHOO.dialog.initialize ("container", "width");
Then before you go to .show() the dialog, do this:
var submitButton = YAHOO.dialog.myNewDialog.getButtons();
var cancelButton = YAHOO.dialog.myNewDialog.getButtons();