• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Home
  • Programming Languages
    • Java Tutorials
    • Python Tutorials
    • JavaScript Tutorials
  • Automation Tools and Different Tools
    • Web Automation
      • Selenium with Java
        • Selenium Basic
        • Selenium Advance
        • Selenium Realtime
        • Framework
        • Selenium Interview
        • Selenium Videos
        • Selenium with Docker
      • Selenium with Python
      • WebdriverIO
        • Selenium Webdriver C# Tutorial
      • Cypress
      • Playwright
    • TestNG
    • Cucumber
    • Mobile Automation
      • Appium
    • API Testing
      • Postman
      • Rest Assured
      • SOAPUI
    • testRigor
    • Katalon
    • TestProject
    • Serenity BDD
    • Gradle- Build Tool
    • RPA-UiPath
    • Protractor
    • Windows Automation
  • Automation For Manual Testers
  • Services
  • Online Training
  • Contact us
  • About me
  • Follow us
    • Linkedin
    • Facebook Group
    • Facebook Page
    • Instagram

Automation

Selenium WebDriver tutorial Step by Step

You are here: Home / Basic Selenium / Start Firefox browser on MAC using Selenium webdriver

Start Firefox browser on MAC using Selenium webdriver

September 3, 2016 by Mukesh Otwani 6 Comments

Firefox browser on mac using Selenium webdriver

To start Firefox browser on MAC using Selenium webdriver we have to use gecko driver which will interact with Firefox browser.In the previous post, we have already discussed how to work with Chrome on MAC using Selenium.

In Selenium 2 we have not used any driver for Firefox but in Selenium 3 for every browser, we have to use third party driver which will perform our task.

Firefox with windows is quite easy where you have to download and mention the path but here we have small change so let’s get started with firefox on MAC.

Firefox browser on mac using Selenium webdriver

Step 1- Download gecko driver and unzip

Download link  https://github.com/mozilla/geckodriver/releases

Firefox browser on mac using Selenium webdriver

 

Step 2- Keep the drivers in /usr/local/bin directory.

Chrome Browser ON MAC using Selenium

Chrome Browser ON MAC using Selenium

 

Firefox browser on mac using Selenium webdriver

Step 3- Write your test

Program for 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 HandleDropDown3 {



   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://learn-automation.com/");

   }

}

 

As you can see we have not set any property in our program to work with Firefox browser. It will take automatically and will start our execution.

Hope you have liked the above article if you still have any doubt then do let me know in the comment section.

 

 

 

Filed Under: Basic Selenium Tagged With: Firefox browser on mac using Selenium webdriver

Reader Interactions

Comments

  1. Anusha says

    February 20, 2017 at 2:48 AM

    Hello Mukesh,
    All your posts are very informative. I have found solution to most of my automation problems from your articles. Keep it going !!!!

    Reply
    • Mukesh Otwani says

      February 20, 2017 at 6:39 AM

      Hi Anusha,

      I am very happy to read from you…:)

      Reply
  2. Monali says

    October 3, 2016 at 1:06 PM

    Hi Mukesh,

    Can you please more videos or articles regarding Applitool which is used for selenium automation

    Reply
    • Mukesh Otwani says

      October 3, 2016 at 4:12 PM

      Hi Monali,

      Not sure about this Applitool 🙁

      Reply
  3. Mitesh says

    September 13, 2016 at 4:57 PM

    Please elaborate the step or please make the video so i can understand in youtube there complicated video of selenium webdriver for Mac

    Reply
    • Mukesh Otwani says

      September 15, 2016 at 4:42 PM

      Hi Mitesh,

      yes will do that but in post also its clear step by step process.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Free Selenium Videos

https://www.youtube.com/watch?v=w_iPCT1ETO4

Search topic

Top Posts & Pages

  • Selenium Webdriver tutorial for beginners
  • How To Fix Eclipse Autocomplete Or Code Suggestion In Eclipse
  • Selenium Webdriver C# Tutorial
  • WHAT ARE YOUR EXPECTATIONS FROM US?

Stay connected via Facebook

Stay connected via Facebook

Archives

Footer

Categories

Recent Post

  • API Testing Using Postman And RestAssured
  • Disable Personalise Your Web Experience Microsoft Edge Prompt In Selenium
  • How To Fix Error: No tests found In Playwright
  • How To Fix Eclipse Autocomplete Or Code Suggestion In Eclipse
  • Best and easy way to Group test cases in selenium

Top Posts & Pages

  • Selenium Webdriver tutorial for beginners
  • How To Fix Eclipse Autocomplete Or Code Suggestion In Eclipse
  • Selenium Webdriver C# Tutorial
  • WHAT ARE YOUR EXPECTATIONS FROM US?