Pages

Search This Blog

Monday, May 17, 2010

How to avoid invalid certificate in selenium RC (IE)

If you are running selenium RC test with IE a site which already has invalid certificate then IE will give a warning for "invalid certificate". You can have selenium
automatically click on "Continue" link in it(which has ID of overridelink) by adding
below command in your IE specific test case.

if ((selenium.isElementPresent("//a[@id='overridelink']"))) {
selenium.click("//a[@id='overridelink']");
//selenium.waitForPageToLoad(MAX_WAIT_TIME_IN_MS);
selenium.waitForPageToLoad("30000");
}

2 comments:

  1. please can you write some post related to selenium ide.............also......by d way.....selenium rc post are very helpfull...

    ReplyDelete
  2. Sure Pappu I will . In fact this blogs for all (IDE, Selenium RC, TestNG, Junit) all combination of all frameworks where you find yourself comfortable.
    Thanks

    ReplyDelete