如何检测加载页面时是否触发 URL

发布于 2024-09-28 00:32:33 字数 97 浏览 0 评论 0原文

我们正在尝试验证加载网页时是否会触发 URL。有没有办法使用 Selenium RC 以编程方式执行此操作?该事件不会出现在页面 HTML 或 DOM 中。

谢谢。

We're trying to validate if a URL fires upon loading a web page. Is there a way to do this programmatically using Selenium RC? The event does not appear within the page HTML or DOM.

Thanks.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

惜醉颜 2024-10-05 00:32:33

您可以指定 URL 作为测试的一部分吗?
如果是这样,那么运行一个 httpd 服务器并检查它在页面加载时是否受到点击怎么样?

Can you specify the URL as part of your test?
If so, then what about running a httpd server and checking if it gets a hit when your page loads?

给妤﹃绝世温柔 2024-10-05 00:32:33

selenium.start("captureNetworkTraffic=true"); 允许“捕获”与网页加载相关的所有 HTTP 请求/响应。格式化后,可以轻松报告这些结果。

The selenium.start("captureNetworkTraffic=true"); enables the 'capture' of all the HTTP requests/responses associated with the loading of the web page. Once formatted, these results can be reported easily.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文