如何检查是否已经收到了剧作家的响应?
使用Java,我正在尝试等待对我正在等待的JavaScript脚本之一的回复。
我已经发现我可以使用,但这会导致问题,如果脚本已经完成加载,则在我到达Waitforresponse语句之前。
有没有办法等待脚本完成,但前提是尚未收到脚本?
page.waitForResponse("**/*<<Script reference>>*.js", () -> { });
任何帮助将不胜感激!
Using Java, I'm trying to wait for a response to one of the Javascript scripts I'm waiting for.
I've already discovered that I can use waitForResponse, but this leads to issues if the script has already completed loading before I reach the waitForResponse statement.
Is there a way I could wait for the script to be completed but only if it hasn't been received yet?
page.waitForResponse("**/*<<Script reference>>*.js", () -> { });
Any help would be greatly appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要做的是审核所有流量。
在这里您有一些示例:
输出:
这样,您不会错过您的请求。
希望我能够为您提供帮助。
What you need to do is audit all traffic.
Here you have some example:
OUTPUT:
This way you will not miss your request.
I hope I have been able to help you.