The error you got suggests to me that you forgot to import LogType.BROWSER
and Level.ALL.

Marcin

On Fri, Jul 9, 2021 at 2:06 PM medv...@gmail.com <medve...@gmail.com> wrote:

> hi,
>
> do you have any suggestion how to include this
> https://stackoverflow.com/questions/25431380/capturing-browser-logs-with-selenium-webdriver-using-java/26488661
> into the framework to get chrome browser console logs?
>
> as this
>
>
>
> *LoggingPreferences logPrefs = new
> LoggingPreferences();logPrefs.enable(LogType.BROWSER,
> Level.ALL);caps.setCapability(CapabilityType.LOGGING_PREFS, logPrefs);*
>
> gives me an error:
>
> *Caused by: groovy.lang.MissingMethodException: No signature of method:
> org.openqa.selenium.logging.LoggingPreferences.enable() is applicable for
> argument types: (ConfigObject, ConfigObject) values: [[:], [:]]*
> *Possible solutions: enable(java.lang.String, java.util.logging.Level),
> any()*
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Geb User Mailing List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to geb-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/geb-user/3cb94fa7-e8f6-4246-91ec-64c94561ce69n%40googlegroups.com
> <https://groups.google.com/d/msgid/geb-user/3cb94fa7-e8f6-4246-91ec-64c94561ce69n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups "Geb 
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to geb-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/geb-user/CA%2B52dQTYu4sk-Gt0DVvu-t4GFmV24YudOTzYdCNnGOGSOsgPWQ%40mail.gmail.com.

Reply via email to