How to launch Chrome browser using Selenium Webdriver on MAC?

0 votes
How to launch Chrome browser using Selenium Webdriver on MAC?
Jul 18 in Selenium by Lucas
43 views

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 by Abha
• 19,440 points

Related Questions In Selenium

0 votes
5 answers
0 votes
1 answer
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,008 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,050 points
413 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
772 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
408 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 in Selenium by Abha
• 19,440 points
37 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 in Selenium by Abha
• 19,440 points
124 views