diff --git a/README.md b/README.md index 9a73e19..a997dfe 100644 --- a/README.md +++ b/README.md @@ -8,16 +8,22 @@ Código del curso de Selenium WebDriver de [Agile611](https://www.agile611.com) 3. [Maven](https://maven.apache.org/download.cgi) 4. [Firefox](https://www.mozilla.org/en-US/firefox/new/) instalado 5. [Chrome](https://www.google.com/chrome/) instalado -6. [Intellij Idea](https://www.jetbrains.com/idea/) o el IDE de Java que más os guste +6. [Visual Studio Code](https://code.visualstudio.com/) o el IDE de Java que más os guste Puedes encontrar el [curso completo aquí](https://www.agile611.com/cursos/agile/curso-online-selenium-webdriver-version-java/) +## Cómo ejecutar + +1. Clona el repositorio +2. Ejecuta `mvn clean test` para correr los tests +3. Los tests usan Firefox y Chrome, asegúrate de que los drivers estén en el PATH o en src/main/resources + ## Soporte -Este tutorial es de dominio público y lo ha realizado [Agile611](https://www.agile611.com) under WTFPL. +Este tutorial es de dominio público y lo ha realizado [Agile611](https://www.agile611.com) under CC-SA. -[![WTFPL](http://www.wtfpl.net/wp-content/uploads/2012/12/wtfpl-badge-1.png)](http://www.wtfpl.net/) +[![CC BY-SA](https://licensebuttons.net/l/by-sa/4.0/88x31.png)](https://creativecommons.org/licenses/by-sa/4.0/) Este README lo ha hecho [Guillem Hernández Sola](https://www.linkedin.com/in/guillemhs/) y también es de dominio público. diff --git a/src/main/resources/chromedriver-linux b/src/main/resources/chromedriver-linux index 3ab2332..a6a052d 100755 Binary files a/src/main/resources/chromedriver-linux and b/src/main/resources/chromedriver-linux differ diff --git a/src/main/resources/chromedriver-macos b/src/main/resources/chromedriver-macos index 95c7cb5..3835010 100755 Binary files a/src/main/resources/chromedriver-macos and b/src/main/resources/chromedriver-macos differ diff --git a/src/main/resources/chromedriver.exe b/src/main/resources/chromedriver.exe old mode 100644 new mode 100755 index c89a033..a36bd43 Binary files a/src/main/resources/chromedriver.exe and b/src/main/resources/chromedriver.exe differ diff --git a/src/main/resources/geckodriver-linux b/src/main/resources/geckodriver-linux index bac836b..58223c1 100755 Binary files a/src/main/resources/geckodriver-linux and b/src/main/resources/geckodriver-linux differ diff --git a/src/main/resources/geckodriver-macos b/src/main/resources/geckodriver-macos index bcec190..1564f31 100755 Binary files a/src/main/resources/geckodriver-macos and b/src/main/resources/geckodriver-macos differ diff --git a/src/main/resources/geckodriver.exe b/src/main/resources/geckodriver.exe old mode 100755 new mode 100644 index 1aba699..37cbf04 Binary files a/src/main/resources/geckodriver.exe and b/src/main/resources/geckodriver.exe differ diff --git a/src/test/java/com/agile611/testng/webdriver/BaseTest.java b/src/test/java/com/agile611/testng/webdriver/BaseTest.java index 7229358..1f42f17 100644 --- a/src/test/java/com/agile611/testng/webdriver/BaseTest.java +++ b/src/test/java/com/agile611/testng/webdriver/BaseTest.java @@ -1,5 +1,8 @@ package com.agile611.testng.webdriver; +import java.io.File; +import java.time.Duration; + import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; @@ -9,11 +12,6 @@ import org.openqa.selenium.firefox.FirefoxOptions; import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; -import java.io.File; -import java.time.Duration; - -import static org.testng.Assert.fail; - public class BaseTest { public WebDriver driver; public static JavascriptExecutor jse;