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
Tags:
Permalink Reply by ramesh kudumula on November 10, 2011 at 2:16pm 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();
}
}
Permalink Reply by ramesh kudumula on November 17, 2011 at 9:47am 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.
© 2012 Created by Quality Testing.