Мне нужно загрузить и загрузить файл в моем приложении. Было бы здорово помочь, если бы кто-то мог подсказать, как это сделать?
WebElement upload = driver.findElement(By.xpath("//span[contains(text(),'Add files')]"));
upload.sendKeys("C:/Users/SSTest/workspace/AwemeTest/UploadFiles/Uploadfile.jpg");
Файл не был прочитан
![enter image description here](https://i.stack.imgur.com/YONOA.png)
![enter image description here](https://i.stack.imgur.com/OwR1A.png)
![enter image description here](https://i.stack.imgur.com/r4gvl.png)