I have written the following selenium script which opens Gmail website.
import org.openqa.selenium.WebDriver; <br>
import org.openqa.selenium.firefox.*;
public class OpenGmail {
/**
* @param args
*/
public void OpenGmailApp()
{
WebDriver webdriver = new FirefoxDriver();
webdriver.get("gmail URL");
}
public static void main(String[] args) {
OpenGmail ob = new OpenGmail();
ob.OpenGmailApp();
}
}
When I execute the above script, I'm getting Firefox home page only. Its not gmail login page. Kindly guide what could be the error I made in that script.
If your jar files are old and the browser was updated to latest version, then download the latest jar files from selenium website -
Selenium Download
You can also use the Selenium FF addon..
FF Selenium Addon
All the steps can be recorded in the addon and the script can be exported.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With