1. MouseHover using WebDriver
actions.MoveToElement(element).Click().Build().Perform();
2. ChromeDriver Usage
Don't forget to include the ChromeDriver.exe before executing webdriver script.- System.setProperty("webdriver.chrome.driver", "c:\\selenium_downloads\\google_driver\\chromedriver.exe");
- WebDriver driver = new ChromeDriver();
- driver.get("http://www.google.com");
3. Set to trust all SecurityCertificates
- RemoteControlConfiguration rcc = new RemoteControlConfiguration ();
- rcc.setTrustAllSSLCertificates(true);
- SeleniumServer seleniumserver=new SeleniumServer(rcc);
- seleniumserver.boot();
- seleniumserver.start();
- setUp("https://www.google.com/", "*firefox");
- selenium.open("/");
Also you can avoid SSL problems using firefox profiles.
1. When you start Selenium RC Server, you can ask it to use a particular Firefox Profile as following:
- java -jar selenium-server2.jar -firefoxProfileTemplate "C:\Users\XXXXXXX\AppData\Roaming\Mozilla\Firefox\Profiles\ab815bdy.Selenium"
FF allows to Trust certain website, and never prompt you again. So, you create this profile first, then ask Selenium to use this FF Profile.
Comments
Post a Comment