Trace log from geckodriver

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

Trace log from geckodriver

Andreas Tolfsen-2
Hello client maintainers, we need your help!

One of the biggest challenges we have addressing geckodriver bug
reports [1] is getting trace-level logs.  Although instructions on
how to enable trace logs is well-explained in the README [2] we want
your help in filling out a howto for specific clients.

As I explain in the guide [3]:

> To help debug a problem with geckodriver or Firefox, the
> trace-level output is vital to understand what is going on.  This
> is why we ask that trace logs are included when filing bugs gainst
> geckodriver.  It is only under very special circumstances that a
> trace log is not needed, so you will normally find that our first
> action when triaging your issue will be to ask you to include one.
> Do yourself and us a favour and provide a trace-level log right
> away.

I want to ask all client maintainers to review the code examples in
this file and let me know if anything is missing or wrong.  If the
client you maintain is not listed, I would very much appreciate if
you could provide me with an appropriate code example.

Thanks in advance!

  [1] https://github.com/mozilla/geckodriver/issues
  [2] https://searchfox.org/mozilla-central/source/testing/geckodriver/README.md
  [3] https://searchfox.org/mozilla-central/source/testing/geckodriver/doc/TraceLogs.md

--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/1507757585.u3hb5kdkgf.ato%40sny.no.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Trace log from geckodriver

Lucas Tierney
Looks good for Python and Ruby. The only thing I might change for Ruby which might be better for users is to use the following (prior to driver instantiation) instead of setting DEBUG or the -d flag:

Selenium::WebDriver.logger.level = :debug



On Wednesday, October 11, 2017 at 4:51:25 PM UTC-5, Andreas Tolfsen wrote:
Hello client maintainers, we need your help!

One of the biggest challenges we have addressing geckodriver bug
reports [1] is getting trace-level logs.  Although instructions on
how to enable trace logs is well-explained in the README [2] we want
your help in filling out a howto for specific clients.

As I explain in the guide [3]:

> To help debug a problem with geckodriver or Firefox, the
> trace-level output is vital to understand what is going on.  This
> is why we ask that trace logs are included when filing bugs gainst
> geckodriver.  It is only under very special circumstances that a
> trace log is not needed, so you will normally find that our first
> action when triaging your issue will be to ask you to include one.
> Do yourself and us a favour and provide a trace-level log right
> away.

I want to ask all client maintainers to review the code examples in
this file and let me know if anything is missing or wrong.  If the
client you maintain is not listed, I would very much appreciate if
you could provide me with an appropriate code example.

Thanks in advance!

  [1] <a href="https://github.com/mozilla/geckodriver/issues" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFCD9iYfZSSUVzm5z3NcwhOF61w0Q&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFCD9iYfZSSUVzm5z3NcwhOF61w0Q&#39;;return true;">https://github.com/mozilla/geckodriver/issues
  [2] <a href="https://searchfox.org/mozilla-central/source/testing/geckodriver/README.md" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fsearchfox.org%2Fmozilla-central%2Fsource%2Ftesting%2Fgeckodriver%2FREADME.md\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGrCnsbF6glHmhtoOfpy1FLAsFH3Q&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fsearchfox.org%2Fmozilla-central%2Fsource%2Ftesting%2Fgeckodriver%2FREADME.md\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGrCnsbF6glHmhtoOfpy1FLAsFH3Q&#39;;return true;">https://searchfox.org/mozilla-central/source/testing/geckodriver/README.md
  [3] <a href="https://searchfox.org/mozilla-central/source/testing/geckodriver/doc/TraceLogs.md" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fsearchfox.org%2Fmozilla-central%2Fsource%2Ftesting%2Fgeckodriver%2Fdoc%2FTraceLogs.md\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHHATyyoXmvCbPmcoukmP_AIPYUvg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fsearchfox.org%2Fmozilla-central%2Fsource%2Ftesting%2Fgeckodriver%2Fdoc%2FTraceLogs.md\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHHATyyoXmvCbPmcoukmP_AIPYUvg&#39;;return true;">https://searchfox.org/mozilla-central/source/testing/geckodriver/doc/TraceLogs.md

--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/6a782d28-6570-4363-ad8d-ce0f72e9ae93%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Trace log from geckodriver

p0deje
For Ruby, all 3 variants are equivalent:

1. Selenium::WebDriver.logger.level = :debug.
2. Run with -d switch.
3. Run with DEBUG=1 environment variable.

Also, the examples are only correct for running Firefox locally, not on Server or Grid.

On Thu, Oct 12, 2017 at 6:27 AM Lucas Tierney <[hidden email]> wrote:
Looks good for Python and Ruby. The only thing I might change for Ruby which might be better for users is to use the following (prior to driver instantiation) instead of setting DEBUG or the -d flag:

Selenium::WebDriver.logger.level = :debug



On Wednesday, October 11, 2017 at 4:51:25 PM UTC-5, Andreas Tolfsen wrote:
Hello client maintainers, we need your help!

One of the biggest challenges we have addressing geckodriver bug
reports [1] is getting trace-level logs.  Although instructions on
how to enable trace logs is well-explained in the README [2] we want
your help in filling out a howto for specific clients.

As I explain in the guide [3]:

> To help debug a problem with geckodriver or Firefox, the
> trace-level output is vital to understand what is going on.  This
> is why we ask that trace logs are included when filing bugs gainst
> geckodriver.  It is only under very special circumstances that a
> trace log is not needed, so you will normally find that our first
> action when triaging your issue will be to ask you to include one.
> Do yourself and us a favour and provide a trace-level log right
> away.

I want to ask all client maintainers to review the code examples in
this file and let me know if anything is missing or wrong.  If the
client you maintain is not listed, I would very much appreciate if
you could provide me with an appropriate code example.

Thanks in advance!

  [1] https://github.com/mozilla/geckodriver/issues
  [2] https://searchfox.org/mozilla-central/source/testing/geckodriver/README.md
  [3] https://searchfox.org/mozilla-central/source/testing/geckodriver/doc/TraceLogs.md

--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/6a782d28-6570-4363-ad8d-ce0f72e9ae93%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/CAP_8%3DB7A4Pq9%3D-qsJXYPkn2hmHDm%3DzGJvTNnPjH2dCX_jOJ5Bw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Trace log from geckodriver

Jim Evans
In reply to this post by Andreas Tolfsen-2
No .NET? Andreas, I really thought we’d been friends long enough for you to ask. :)

The C# syntax is similar to Java. To wit:

FirefoxOptions options = new FirefoxOptions();
options.LogLevel =  FirefoxDriverLogLevel.Trace;
IWebDriver driver = new FirefoxDriver(options);

.NET, like Java, “helpfully propagates” the output to stdout.

--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/b3b8c40b-2eed-41c1-b671-b8169e21747e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Trace log from geckodriver

Alexei Barantsev
In reply to this post by Andreas Tolfsen-2
Java binding provides two setLogLevel methods in FirefoxOptions class. It is recommented to use the one that accepts FirefoxDriverLogLevel, the other one is deprecated.

FirefoxOptions opts = new FirefoxOptions()
    .setLogLevel(FirefoxDriverLogLevel.TRACE);
WebDriver driver = new FirefoxDriver(opts);

Regards,
--
Alexei Barantsev

On Thursday, October 12, 2017 at 12:51:25 AM UTC+3, Andreas Tolfsen wrote:
Hello client maintainers, we need your help!

One of the biggest challenges we have addressing geckodriver bug
reports [1] is getting trace-level logs.  Although instructions on
how to enable trace logs is well-explained in the README [2] we want
your help in filling out a howto for specific clients.

As I explain in the guide [3]:

> To help debug a problem with geckodriver or Firefox, the
> trace-level output is vital to understand what is going on.  This
> is why we ask that trace logs are included when filing bugs gainst
> geckodriver.  It is only under very special circumstances that a
> trace log is not needed, so you will normally find that our first
> action when triaging your issue will be to ask you to include one.
> Do yourself and us a favour and provide a trace-level log right
> away.

I want to ask all client maintainers to review the code examples in
this file and let me know if anything is missing or wrong.  If the
client you maintain is not listed, I would very much appreciate if
you could provide me with an appropriate code example.

Thanks in advance!

  [1] <a href="https://github.com/mozilla/geckodriver/issues" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFCD9iYfZSSUVzm5z3NcwhOF61w0Q&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFCD9iYfZSSUVzm5z3NcwhOF61w0Q&#39;;return true;">https://github.com/mozilla/geckodriver/issues
  [2] <a href="https://searchfox.org/mozilla-central/source/testing/geckodriver/README.md" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fsearchfox.org%2Fmozilla-central%2Fsource%2Ftesting%2Fgeckodriver%2FREADME.md\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGrCnsbF6glHmhtoOfpy1FLAsFH3Q&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fsearchfox.org%2Fmozilla-central%2Fsource%2Ftesting%2Fgeckodriver%2FREADME.md\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGrCnsbF6glHmhtoOfpy1FLAsFH3Q&#39;;return true;">https://searchfox.org/mozilla-central/source/testing/geckodriver/README.md
  [3] <a href="https://searchfox.org/mozilla-central/source/testing/geckodriver/doc/TraceLogs.md" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fsearchfox.org%2Fmozilla-central%2Fsource%2Ftesting%2Fgeckodriver%2Fdoc%2FTraceLogs.md\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHHATyyoXmvCbPmcoukmP_AIPYUvg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fsearchfox.org%2Fmozilla-central%2Fsource%2Ftesting%2Fgeckodriver%2Fdoc%2FTraceLogs.md\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHHATyyoXmvCbPmcoukmP_AIPYUvg&#39;;return true;">https://searchfox.org/mozilla-central/source/testing/geckodriver/doc/TraceLogs.md

--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/807c29b9-2888-4d3f-b27b-3e103c3bcb62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Trace log from geckodriver

Andreas Tolfsen-2
In reply to this post by Lucas Tierney
Also sprach Lucas Tierney:

> Looks good for Python and Ruby. The only thing I might change
> for Ruby which might be better for users is to use the following
> (prior to driver instantiation) instead of setting DEBUG or the -d
> flag:
>
> Selenium::WebDriver.logger.level = :debug

Thanks for the tip!  I’ve submitted a patch to update the Ruby
docs accordingly:

        https://reviewboard.mozilla.org/r/188748/diff/2#index_header

--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/1507809801.mvc2uqfgki.ato%40sny.no.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Trace log from geckodriver

Andreas Tolfsen-2
In reply to this post by Jim Evans
Also sprach Jim Evans:

> No .NET? Andreas, I really thought we’d been friends long enough
> for you to ask. :)

This was me asking (-:  It is wonderful to send off an email before
you go to bed, then wake up and see your inbox filled up with
proper, useful feedback.

> The C# syntax is similar to Java. To wit:
>
> FirefoxOptions options = new FirefoxOptions();
> options.LogLevel =  FirefoxDriverLogLevel.Trace;
> IWebDriver driver = new FirefoxDriver(options);
>
> .NET, like Java, “helpfully propagates” the output to stdout.

Thanks so much!  I’ve submitted a patch to add a C# example:

        https://reviewboard.mozilla.org/r/188750/diff/2#index_header

Am I using “C#” correctly or should also “.NET” be in there?
I’m a bit hazy on what the convention is.

--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/1507809887.g4sysi5a0y.ato%40sny.no.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Trace log from geckodriver

Andreas Tolfsen-2
In reply to this post by Alexei Barantsev
Also sprach Alexei Barantsev:

> Java binding provides two setLogLevel methods in FirefoxOptions
> class. It is recommented to use the one that accepts
> FirefoxDriverLogLevel, the other one is deprecated.
>
> FirefoxOptions opts = new FirefoxOptions()
>     .setLogLevel(FirefoxDriverLogLevel.TRACE);
> WebDriver driver = new FirefoxDriver(opts);

Noted.  I’ve submitted a patch for updating the Java example:

        https://reviewboard.mozilla.org/r/188752/diff/2#index_header

--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/1507810118.e1bk4joukl.ato%40sny.no.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Trace log from geckodriver

Lucas Tierney
In reply to this post by Andreas Tolfsen-2
Andreas:

It looks like the change you submitted used :trace for the selenium logger, it needs to be :debug as the selenium logger does not have a :trace severity.

Selenium::WebDriver.logger.level = :debug

On Thursday, October 12, 2017 at 7:04:57 AM UTC-5, Andreas Tolfsen wrote:
Also sprach Lucas Tierney:

> Looks good for Python and Ruby. The only thing I might change
> for Ruby which might be better for users is to use the following
> (prior to driver instantiation) instead of setting DEBUG or the -d
> flag:
>
> Selenium::WebDriver.logger.level = :debug

Thanks for the tip!  I’ve submitted a patch to update the Ruby
docs accordingly:

        <a href="https://reviewboard.mozilla.org/r/188748/diff/2#index_header" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Freviewboard.mozilla.org%2Fr%2F188748%2Fdiff%2F2%23index_header\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFRxXkXH0LcB7jr8GWeI2hrXMm6GA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Freviewboard.mozilla.org%2Fr%2F188748%2Fdiff%2F2%23index_header\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFRxXkXH0LcB7jr8GWeI2hrXMm6GA&#39;;return true;">https://reviewboard.mozilla.org/r/188748/diff/2#index_header

--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/e603bfa2-e89b-477f-baec-55e43d47e283%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Trace log from geckodriver

Jim Evans
In reply to this post by Andreas Tolfsen-2
Simply “C#” is correct as the language name. While .NET is the platform, and supports multiple languages (VB.NET, F#, etc.), but most .NET developers use C#, so that’s the most effective example language.

--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/5dcbcb7d-cd6f-48ae-82d7-ef974821d893%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Trace log from geckodriver

Andreas Tolfsen-2
In reply to this post by Lucas Tierney
Also sprach Lucas Tierney:

> It looks like the change you submitted used :trace for the
> selenium logger, it needs to be :debug as the selenium logger does
> not have a :trace severity.
>
>> Selenium::WebDriver.logger.level = :debug

Thanks for noticing this bug.  I’ve submitted a follow-up:

        https://reviewboard.mozilla.org/r/189142/diff/1#index_header

I hope I understand this correctly, that the Selenium logger should
receive a :debug symbol but the FirefoxOptions class should get
:trace?

--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/1507908069.fuhhk7f7g8.ato%40sny.no.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Trace log from geckodriver

Andreas Tolfsen-2
In reply to this post by Jim Evans
Also sprach Jim Evans:

> Simply “C#” is correct as the language name. While .NET is
> the platform, and supports multiple languages (VB.NET, F#, etc.),
> but most .NET developers use C#, so that’s the most effective
> example language.

Thanks for the clarification!

--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/1507908170.1osltvvsim.ato%40sny.no.
For more options, visit https://groups.google.com/d/optout.