Firefox browser not opening with given URL using Selenium Webdriver with Java

0 votes

Below is the code to open Gmail using selenium java code:

import org.openqa.selenium.WebDriver; 

import org.openqa.selenium.firefox.*;

public class TestDemo {

    public void GmailACC()

    {

        WebDriver webdriver = new FirefoxDriver();

        webdriver.get("gmail URL");

    }

    public static void main(String[] args) {

        TestDemo obj = new TestDemo();

        obj.GmailACC();

    }

}

When I run the above code, Firefox opens but it does not open the Gmail page. Any suggestions??

Apr 30, 2018 in Selenium by Martin
• 4,220 points
2,259 views

1 answer to this question.

0 votes

Download the latest selenium jar and replace the external jar of project in eclipse.

Check the selenium jars. Selenium supports Firefox, so it directly initiates the instance of Firefox WebDriver, but due to selenium jars compatibility URL id not opening. http://www.seleniumhq.org/download/

answered Apr 30, 2018 by Samarpit
• 5,130 points

Related Questions In Selenium

0 votes
1 answer

Firefox Error: “Your connection is not secure” while launching driver with Selenium 3.0.1 using Java

Download Firefox 55 beta and set capabilities.setCapability("acceptInsecureCerts", true); Here ...READ MORE

answered Sep 17, 2018 in Selenium by Meci Matt
• 9,420 points
327 views
0 votes
1 answer
0 votes
1 answer

Not able to login using selenium webdriver using Java Language

Try to send text to the username ...READ MORE

answered Jul 17, 2018 in Selenium by Samarpit
• 5,130 points
296 views
0 votes
0 answers

Unable to pass url in firefox and chrome by using selenium webdriver

Hi All, I am not able to run ...READ MORE

May 1 in Selenium by anonymous

edited May 2 by Omkar 197 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,090 points
592 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
901 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
578 views
0 votes
1 answer

Capturing JavaScript errors with Selenium WebDriver using Java

There is logs Beta version in WebDriver driver.manage().logs().get(LogType.BROWSER); Console output will be ...READ MORE

answered May 18, 2018 in Selenium by Samarpit
• 5,130 points
209 views
0 votes
1 answer

How to open a browser window in full screen using Selenium WebDriver with C#

Simply Use this: driver.Manage().Window.Maximize(); READ MORE

answered Jun 7, 2018 in Selenium by Samarpit
• 5,130 points
3,391 views