使用WebDriverio上传文件并打开模式

发布于 2025-02-10 02:14:53 字数 417 浏览 0 评论 0 原文

我有这个问题: 在我试图使用WebDriverio测试的网站上,它具有此功能:

  1. 您单击一个按钮上传文件(窗口打开以选择您的本地文件)
  2. 您选择文件并单击“接受”。
  3. 单击“接受”时,模态将打开并为您提供进度栏,并为继续进行过程和测试提供一些强制性输入。

在其他情况下,请上传文件: 它可以正常工作!

但是在这种情况下,我需要在单击窗口上单击“接受后”(无论如何我都没有真正单击当地文件窗口的接受按钮,所以可能以前应该解决,但是我不知道如何做到这一点)……它没有发生。

感谢您的帮助!

I'm having this problem:
At the website I'm trying to test with webdriverio, it has this functionality:

  1. You click a button to upload a file (a window opens to choose your local file)
  2. You select your file and click Accept.
  3. When you click Accept, a modal opens and gives you a progress bar and also some mandatory inputs to continue the process and the test.

In other cases, uploading the file with this:
https://webdriver.io/blog/2019/06/25/file-upload/
it works fine!

But in this case, I need to open the modal after you click Accept at the window (anyway I'm not really clicking on Accept button at the locals file window, so probably this should be solve before, but I don't know how to do it)… and its not happening.

Thanks for the help!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文