diff --git a/src/test/java/com/agile611/testng/webdriver/UploadTest.java b/src/test/java/com/agile611/testng/webdriver/UploadTest.java index 3c4fc02..f6af128 100644 --- a/src/test/java/com/agile611/testng/webdriver/UploadTest.java +++ b/src/test/java/com/agile611/testng/webdriver/UploadTest.java @@ -16,7 +16,7 @@ public class UploadTest extends BaseTest { public void testApp() throws InterruptedException { driver.navigate().to("https://the-internet.herokuapp.com/upload"); WebElement fileUpload = driver.findElement(By.id("file-upload")); - File file = new File("src" + File.separator + "main" + File file = new File("src" + File.separator + "test" + File.separator + "resources" + File.separator + "2-logo-B_activa.png"); fileUpload.sendKeys(file.getAbsolutePath()); WebElement buttonUpload = driver.findElement(By.id("file-submit"));