Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Test::WWW::Selenium webdriver output

by onelesd (Pilgrim)
on Sep 28, 2011 at 00:27 UTC ( #928208=note: print w/ replies, xml ) Need Help??


in reply to Test::WWW::Selenium webdriver output

Selenium supports setting the log level in the GUI; set the log level to 'Error'. You can probably set it via your script as well, try Google-ing it.


Comment on Re: Test::WWW::Selenium webdriver output
Re^2: Test::WWW::Selenium webdriver output
by technojosh (Priest) on Sep 28, 2011 at 16:27 UTC
    Thats it. Searching the api I found:

    $sel->set_browser_log_level('error');

    It must be called after a page has been opened. I'm still curious why, without explicitly setting this, you get different "log level" behaviors. No matter, my question is answered!

    UPDATE:

    I was barking up the wrong tree entirely, and my solution is a Perl solution :) The 'set_browser_log_level' method is not the one I wanted, it only concerns the UI and I run mostly on the command line or some flavor of a console. No no, the selenium webdriver, the .jar file you must launch to run a selenium test is my culprit.
    I was starting the webdriver with a system call in my code. This would show output from the webdriver right along with the output from my test code. By spawning a secondary process under a separate (possibly hidden) console, I can keep the output I want and divert the "INFO" stuff from the selenium webdriver to a secondary place (or ideally, I'll just find a way to suppress it altogether.. any help there would still be appreciated!)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://928208]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2014-12-26 09:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (170 votes), past polls