From 5cbbca59d01c0243dd57a914090bce5a8d23904d Mon Sep 17 00:00:00 2001 From: Guillem Hernandez Sola Date: Thu, 23 Apr 2026 13:25:13 +0200 Subject: [PATCH] upload test fixed --- src/test/java/com/agile611/testng/webdriver/UploadTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"));