How to start Firefox browser on Mac using Selenium Webdriver

0 votes
How to start Firefox browser on Mac using Selenium Webdriver?
Jul 18, 2019 in Selenium by Tom
1,413 views

1 answer to this question.

0 votes

Hey Tom, you can use following commands to launch Firefox browser on Mac using Selenium Webdriver:

import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class Facebooklogin{

   public static void main(String[] args) throws InterruptedException {

       WebDriver driver=new FirefoxDriver();

       driver.manage().window().maximize();
       driver.manage().timeouts().pageLoadTimeout(1, TimeUnit.SECONDS);
       driver.get("https://facebook.com/");

   }
}
answered Jul 18, 2019 by Abha
• 28,140 points

Related Questions In Selenium

+1 vote
0 answers

Using the Selenium WebDriver, Unable to launch chrome browser on Mac

Attached screenshot of code and execution consoleI ...READ MORE

Nov 21, 2019 in Selenium by Reshmi
• 130 points
12,546 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,592 views
0 votes
8 answers

How to open a link in new tab of chrome browser using Selenium WebDriver?

This below code works for me in ...READ MORE

answered Dec 14, 2020 in Selenium by Gitika
• 65,910 points
101,650 views
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
12,754 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
8,623 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
6,698 views
0 votes
1 answer

How to launch Chrome browser using Selenium Webdriver on MAC?

Hey Lucas, you can launch chrome browser ...READ MORE

answered Jul 18, 2019 in Selenium by Abha
• 28,140 points
5,023 views
0 votes
1 answer
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