question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WebDriver grabBrowserLogs Undefined

See original GitHub issue

What are you trying to achieve?

Get the console.log output of the browser which is Log output on https://nextjs.pbeigang.now.sh/.

What do you get instead?

WebDriver grabBrowserLogs
    I am on page "https://nextjs.pbeigang.now.sh"
    I grab browser logs 
undefined

Test source:

Scenario(
    "WebDriver grabBrowserLogs",
    async I => {
        I.amOnPage("https://nextjs.pbeigang.now.sh");
        const logs = await I.grabBrowserLogs();
        console.log(JSON.stringify(logs))
    }
);

Details

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

1reaction
neutraalicommented, Nov 22, 2019

Getting this exact same error, or to be more precise:

After(async function(I) {
	let logs = await I.grabBrowserLogs();
	console.log(JSON.stringify(logs));
});

Debug:

Immediate: _onImmediate 
  I grab browser logs 
  › Logs not awailable in W3C specification
 .  .  .
 undefined

Using:

// Packages
"codeceptjs": "2.3.2"
"selenium-webdriver": "4.0.0-alpha.1"
"webdriverio": "5.14.4"

// Image used (for CI)
selenium/standalone-chrome:3.141.59
Read more comments on GitHub >

github_iconTop Results From Across the Web

WebDriver grabBrowserLogs Undefined · Issue #1965 - GitHub
WebDriver grabBrowserLogs I am on page "https://nextjs.pbeigang.now.sh" I grab browser logs undefined. Test source:.
Read more >
WebDriver - CodeceptJS
WebDriver helper which wraps webdriverio (opens new window) library to manipulate browser using Selenium WebDriver or PhantomJS. WebDriver ...
Read more >
Webdriver: Undefined name 'driver' - python - Stack Overflow
I'm writing a python script that uses Firefox webdriver. However, the browser instance should not be created until a condition is met.
Read more >
codeceptjs | Yarn - Package Manager
It abstracts browser interaction to simple steps that are written from a user perspective. A simple test that verifies the "Welcome" text is...
Read more >
Source - GitHub
[allure] Fixed undefined output directory for allure plugin on using custom runner. Fix by @charliepradeep * [WebDriver] Fixed `waitForEnabled` fix for ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found