Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
how to dismiss the alert box using selenium RC in Eclipse Editor
i am doing a coding for testing web application using java code in Eclipse editor according to selenium RC.

i done a code like this.....
Boolean b=selenium.isAlertPresent();
      if(b.equals(true))
      {

          Alert alert= wd.switchTo().alert();
          alert.dismiss();
         String error=selenium.getAlert();
          return "Error:"+error;
      }

But it is showing the errror like UNABLE TO DISMISS THE ALERT?IS THE ALERT PRESENT?
Posted
Updated 12-Apr-11 2:51am
v2
Comments
Toniyo Jackson 12-Apr-11 8:52am    
Added pre tag

1 solution

Try asking this question on the Selenium Users Forum[^], they are more likely to have the specific knowledge you require.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900