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,320 points
7,708 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,910 points
I've done this. And still not working.
Hey, what's the error that you are getting?

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,460 points
1,763 views
0 votes
1 answer
0 votes
1 answer
0 votes
2 answers

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,500 points
13,486 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
9,029 views
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,910 points
7,144 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
7,815 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,910 points
1,696 views
0 votes
2 answers

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

Hi , we have inbuilt method Maximize(). driver.Manage().Wind ...READ MORE

answered Sep 6, 2020 in Selenium by Sri
• 3,190 points
15,961 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP