[英]how to upload file in linux machine using seleniumgrid
I had this 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. 在硒WC中运行良好。 When we have changed to "seleniumgrid and Linux" file does not upload any more.
当我们更改为“ seleniumgrid和Linux”时,文件不再上传。
Would you suggest how to upload a file in Linux by using selenium grid? 您是否建议如何使用Selenium网格在Linux中上传文件?
The path you are using is wrong for Linux. 对于Linux,您使用的路径错误。 You would need to store the Koala.jpg file in the linux RC machine and provide that path in the command.
您需要将Koala.jpg文件存储在linux RC计算机中,并在命令中提供该路径。
"C:\\Users\\Public\\Pictures\\Sample Pictures\\Koala.jpg"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.