如何在java/katalon/selenium中关闭Windows文件上传窗口?
我正在尝试在 Chrome 中测试将文件上传到网站,但是当按下上传文件按钮时,它会自动打开 Windows 文件提示符。我需要能够在未上传文件的情况下关闭上传文件提示。有没有办法从一开始就阻止此提示出现,或者在打开后将其关闭?我无法使用 java 机器人,它无法在运行此测试的系统上运行。
I am trying to test uploading a file to a site in chrome but when the upload file button is pressed it automatically opens the windows file prompt. I need to be able to close the upload file prompt in the case when a file is not uploaded. Is there a way to either prevent this prompt from appearing in the first place, or close it after it opens? I cannot use the java robot, it does not work on the system that this test will be run on.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
文件上传通常通过 Sendkeys(FilePath(with Extension)) 到输入标签进行处理。
File Upload is usually handled via Sendkeys(FilePath(with Extension)) to the Input Tag.