/*
* 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();
}
}
Cuando lo ejecuto firefox se abre pero no sale la pagina que estoy poniendo y se queda en blanco , se abre una subventana preguntandome si guardo firefox.exe