How to launch Chrome browser using Selenium Webdriver on MAC

0 votes
How to launch Chrome browser using Selenium Webdriver on MAC?
Jul 18, 2019 in Selenium by Lucas
3,066 views
Hi Lucas

Were you able to figure out this?

1 answer to this question.

0 votes

Hey Lucas, you can launch chrome browser using Selenium Webdriver on Mac in following way:

import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class GoogleLoginTest{

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

       WebDriver driver=new ChromeDriver();

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

   }

}
answered Jul 18, 2019 by Abha
• 28,000 points
without setting system property is it possible to launch chrome browser?

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
3,994 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 13, 2020 in Selenium by Gitika
• 65,870 points
61,444 views
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,520 points
4,674 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,010 points
5,500 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,890 points
3,324 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 2, 2020 in Selenium by Sri
• 3,010 points
3,947 views
0 votes
1 answer

How to start Firefox browser on Mac using Selenium Webdriver?

Hey Tom, you can use following commands ...READ MORE

answered Jul 18, 2019 in Selenium by Abha
• 28,000 points
561 views
0 votes
1 answer

How to click on a hyperlink using Selenium WebDriver?

Hi Jonathan, you can use click() method in ...READ MORE

answered May 29, 2019 in Selenium by Abha
• 28,000 points
5,129 views