简体   繁体   中英

Clear Network tab using Selenium Java

I am trying to load a page, and I am automating the process of checking for a POST request after a button is clicked.

In order to do this, I need to clear the Network tab of all previous entries before the button is clicked, otherwise it will not show up on the list for some reason.

Is there a way to do this via logging or some other means in Selenium Java?

网络控制台

As far as I know, there is no way to interact with Chrome's dev tools as you intent to. Alhough, if you are interested in obtaining/parse data from the Network tab in Chrome you can do that following their quick tutorial in their website here .

I don't know what is you idea but here I leave you 2 cents. Perhaps you could access this data and work it elsewhere instead of constant refreshing.

Here is a similar question to yours.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM