查找JS是否完成执行

发布于 2025-02-05 09:24:03 字数 188 浏览 2 评论 0原文

我是WebDriverio的新手。在我们的网站中,我有兴趣找到JS是否完成执行。

对于ex:有加载的file.js。此file.js触发API调用。 API呼叫通过响应返回。 file.js消耗此响应并修改DOM。

我想以编程方式检查JS启动API的整个过程,消耗响应并使用WebDriver IO修改DOM。

请帮助。

I am new to webdriverio. In our website, I'm interested to find the whether a JS is completed executing.

For ex: there is file.js which is loaded. This file.js fires an api call. The API call returns with a response. The file.js consume this response and modifies the DOM.

I want to check programmatically if this whole process of JS firing an API, consuming the response and modifying the DOM is completed using WebDriver IO.

Kindly help.

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

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

发布评论

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