Open ghost opened 4 years ago
After each spec execution the report calls await browser.manage().logs().get('browser'); So yes, if during the execution of an "it" the browser refreshes the logs might be lost... Gathering of browser logs is only working in chrome btw...
I know chrome offers a feature called 'preserve logs' in the developer console options. If you find out how to put that into webdriver chromeoptions it might work in e2e tests via protractor too.
I have some questions. Are ALL the browser logs gathered? Are browser logs gathered only after each test, or before each test? If, during a test a refresh happens and the browser console gets wiped, are those logs lost?