junit - how to upload file in linux machine using seleniumgrid -


i had piece of code:

element.sendkeys(by.xpath("//input[@id='documentuploadt7form:documentfileupload:file']"),         "c:\\users\\public\\pictures\\sample pictures\\koala.jpg", driver, new webdriverwait(driver, 60l)); 

in selenium wc running fine. when have changed "seleniumgrid , linux" file not upload more.

would suggest how upload file in linux using selenium grid?

the path using wrong linux. need store koala.jpg file in linux rc machine , provide path in command.

"c:\\users\\public\\pictures\\sample pictures\\koala.jpg" 

Comments