开发者

How to detect if a URL fires upon loading a page

开发者 https://www.devze.com 2023-01-20 20:43 出处:网络
We\'re trying to val开发者_高级运维idate 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.

We're trying to val开发者_高级运维idate 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.


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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消