-
-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serenity Devtools driver issue #2925
Comments
you are just declaring though in step libraries you don't get the webdriver, do you? |
hi @globalworming, BrowseTheWeb.as(actor).getDevTools() is returned null. |
getDevTools() will return null if the driver does not support the |
Hi @wakaleo,
Works when run on local driver for all versions |
Cool, so this can be closed? |
please don't close it because the issue with RemoteWebDriver still exists. |
This isn't a Serenity issue. The BrowseTheWeb.as(actor).maybeGetDevTools().ifPresent(
devTools -> {
devTools.createSession();
devTools.send(Log.enable());
devTools.addListener(Log.entryAdded(), logEntry -> {
System.out.printf("DEVTOOLS LOG: %s\n - %s: %s",logEntry.getLevel(), logEntry.getUrl(), logEntry.getText());
});
}
); |
When i try to extract info from console using devtools I'm getting issue in driver showing null
code snippet:
Error:Step failed
java.lang.NullPointerException: Cannot invoke "org.openqa.selenium.devtools.DevTools.createSession()" because "this.devTools" is null
The text was updated successfully, but these errors were encountered: