Please Help me out. I'm not able to set chrome driver exe on Mac OS.
package Browser;
import java.sql.Driver;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.Test;
public class LaunchBrowser {
@Test
public void TestApp() {
System.setProperty("Webdriver.Chrome.driver", "Users\\sajjadalikhurasani\\Desktop\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("https://google.co.in");
}
}
in latest version of Webdriver, you don't have to use chromedriver path anymore, so delete below line and try:
System.setProperty("Webdriver.Chrome.driver", "Users\\sajjadalikhurasani\\Desktop\\chromedriver.exe");