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
rupesh asked 3 weeks 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
naveen answered 3 weeks ago
Your Answer

11 + 6 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com