I'm experiencing some problems using karate testing when uploading a file through a web interface using a Selenium grid cluster (Zalenium) and Jenkins:
find an easy way for getting the full path of the file to be able to send it to the input web element with:
waitFor(inputFieldSelector).input(fullPathOfThefile)
I solved this using a custom java method to reconstruct it but for sure there's a faster/more elegant way. Is there a specific Karate function/way for get it?
find a way to set up the remote webdriver to handle the local files as it seems that it searches the file to upload in the wrong place.
In Java I solved it using setFileDetector of RemoteWebDriver with LocalFileDetector (an example is shown below) but I don't know how to do it in Karate:
RemoteWebDriver rwd = new RemoteWebDriver(new URL(gridUrl), DesiredCapabilities.firefox()); rwd.setFileDetector(new LocalFileDetector());