I am executing my scripts on LambdaTest using Java and I have a use case to test file upload. It is working when I am running on local but the path is not recognized on the platform. Is there a way to cater this.
Hey Mark,
It is possible to upload the file using local file path and send keys. This can be done using the LocalFileDetector class in Java.
driver.setFileDetector(new LocalFileDetector())
driver.get("URL");
driver.findElementById("ELEMENT WHERE UPLOAD ITEM").sendKeys("PATH OF THE FILE");