And I stored my file on Data Files folder. When I running on my local machine (Windows), nothing wrong happens. But, when I running on Docker, The error said that cannot find my file :
org.openqa.selenium.InvalidArgumentException: invalid argument: File not found : \tmp\katalon_execute\project\Data Files\expense.jpg
Can someone explain to me how to handle it? Thanks!
Im facing the same problem. I know the failure is something to do with path mounting. basically, the file doesnt exist in that path. try copying the file into a path in slave and try, and use that path to upload the file
Your code works on Windows only. It would never work on Linux in a docker container. You should avoid hard-coding platform-specific file path seperators: \ and /