Try to search your question here, if you can't find : Ask Any Question Now ?

driver.manage().logs().get("browser"); does not work when called again

HomeCategory: stackoverflowdriver.manage().logs().get("browser"); does not work when called again
Avatarrupesh asked 5 months ago

I’m trying to capture the browser console logs of Chrome using selenium webdriver. I used the below method twice in a @Test method. It returns the console logs when it is executed for the first time but when I call it again it returns an empty string.

public String getConsoleLogs(WebDriver driver)
{
     return driver.manage().logs().get("browser"); 
}
1 Answers
Best Answer
Avatarnaveen answered 5 months ago
Your Answer

5 + 18 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com