Quality Testing

Quality is delighting customers

Can any one tell how to start Selenium instance by providing ignore certificate errors.

I have tried using DefaultSelenium sel = new DefaultSelenium("localhost", 4444, "*googlechrome --ignore-certificate-errors",http://google.com);

sel.start();

sel.open("/");

Note: This is not working , can any one help me in this. Thank you in advance

Views: 38

Replies to This Discussion

hi i am sending the simple script in Junit before u r executing fist u need to start the selenium server. just fallow the billow script easy to understand "ALL THE BEST".

import com.thoughtworks.selenium.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.internal.seleniumemulation.IsElementPresent;

import java.util.regex.Pattern;

public class login extends SeleneseTestCase {
    @Before
    public void setUp() throws Exception {
        selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://www.gmail.com");
        selenium.start();
    }

    @Test
    public void testgoogle() throws Exception {
        selenium.open("/");
        selenium.windowMaximize();
        selenium.type("id=Email", "emailid");
        selenium.type("id=Passwd", "password");
        selenium.click("signIn");
        selenium.waitForPageToLoad("3000");
    }
    @After
    public void tearDown() throws Exception {
        selenium.stop();
    }
}

hi i am help u if u want run the script in Google Chrome Right i will send the one syntax flow them"DesafultSelenium=new DefaultSelenium("locahost",4444,"*chrome","http://");

u can try this one defiantly u will executed.

RSS

TTWT Magazine

Advertisement

You Can


Call for Articles

Advertisement

Videos

  • Add Videos
  • View All

Badge

Loading…

© 2012   Created by Quality Testing.

Badges  |  Report an Issue  |  Terms of Service