Jenkins file upload

178 views
Skip to first unread message

razz...@gmail.com

unread,
Nov 3, 2022, 2:47:11 PM11/3/22
to Selenium Users
Hi ,

I am facing an issue with Jenkins. In my scenario I am uploading a file using sendkeys() function, this works fine in local execution. But when I am trying to execute the same through Jenkins pipeline I am getting below error, could any one please help me with the solution

Error:
org.openqa.selenium.InvalidArgumentException: invalid argument: File not found :

Thanks,

Chinmayee Baitharu

unread,
Nov 3, 2022, 3:01:07 PM11/3/22
to seleniu...@googlegroups.com
Please chk the path of the file 
If its ur  systems path 
Jenkins will not likely know the file location

Do u have the project folder structure uploaded in jenkins ?

Try to fetch it from project specific folders
Not outside 

Regards,
Chinmayee


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/893f8f7b-cf42-4245-90fd-563384c2a033n%40googlegroups.com.

razz...@gmail.com

unread,
Nov 4, 2022, 10:16:56 AM11/4/22
to Selenium Users
Thanks for the reply,
I have checked it the ting is in pipeline we are using grid and selenium is running in one node and file are located in one node. this is the reason file are not getting identified. 

Is there any solution for this?
Reply all
Reply to author
Forward
0 new messages