serenity-bdd / serenity-cucumber4-starter

48 stars 73 forks source link

How to verify a API call in Browser Dev Tools with Serenity #37

Open szanelato opened 3 years ago

szanelato commented 3 years ago

Hi, I'm trying to get one API call details after some browser action. My test make a login and I need to get a specific POST action to my login endpoint through Devtools from browser (F12).

How can I do this using Serenity?

I tryed to use List<LogEntry> logEntries = getDriver().manage().logs().get(LogType.BROWSER).getAll(); but it returns only the Console tab, not the Network tab.