/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package test;
import com.gargoylesoftware.htmlunit.javascript.host.file.File;
import interfaz.interfaz;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxOptions;
import org.openqa.selenium.firefox.FirefoxProfile;
/**
*
* @author Josel
*/
public class test {
public static void main(String[] args) {
WebDriver driver;
System.setProperty("webdriver.gecko.driver", "C:\Program Files (x86)\Mozilla Firefox\firefox.exe");
driver =new FirefoxDriver();
driver.get("www.google.com");
driver.close();
}
}
When I run it, firefox opens but the page I'm putting does not come out and it goes blank, a subwindow opens asking me if I save firefox.exe