开发者

selenium-rc: how to clear the network traffic logs on the selenium w/o getting them

开发者 https://www.devze.com 2023-01-16 15:55 出处:网络
I perform a process using selenium (i.e open pages, click on links,..) and I want to get the network traffic only of the last page and only on error. That is, when opening a moving to a new page the \

I perform a process using selenium (i.e open pages, click on links,..) and I want to get the network traffic only of the last page and only on error. That is, when opening a moving to a new page the "network log" on the selenium host needs to be empty. If an error oc开发者_运维百科curs on the page, I call captureNetworkTraffic and get the last headers.

According to captureNetworkTraffic's documentation this is the only function that clears the logs. The problem is that it get's the logs and I want to reduce network traffic to the selenium host. Is there a way to tell selenium to clear the logs w/o actually getting them?

0

精彩评论

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