Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

no way to disable/enable warnings coming from HtmlUnit #31

Closed
xsocher opened this Issue Sep 16, 2011 · 8 comments

Comments

Projects
None yet
6 participants

xsocher commented Sep 16, 2011

any possibilities to turn off/on the chatty htmlUnit error messages in this plugin?

16.09.2011 11:49:31 com.gargoylesoftware.htmlunit.DefaultCssErrorHandler error
WARNUNG: CSS error: null [8:438] Fehler in Ausdruck. Ungültiger Token "=". Erwartet wurde einer von: , , "/", , "-", , <
STRING>, ")", , "inherit", , , <LENGTH_PX>, <LENGTH_CM>, <LENGTH_MM>, <LENGTH_IN>, <LENGTH_PT>, <LENGTH_PC>, <ANGLE_DEG>, , <ANGLE_GRAD>, <TIME_MS>, <TIME_S>, <FREQ_HZ>, <FREQ_KHZ>, , , , , .
16.09.2011 11:49:31 com.gargoylesoftware.htmlunit.DefaultCssErrorHandler error
WARNUNG: CSS error: null [8:443] Fehler in Style-Regel. Ungültiger Token "opacity". Erwartet wurde einer von: "}", ";".
http://htmlunit.sourceforge.net/faq.html#AJAXDoesNotWork

reference:http://htmlunit.sourceforge.net/faq.html#AJAXDoesNotWork

xsocher commented Sep 16, 2011

I have found out that setting system properties will do the trick.

mvn jasmine:test -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog

but, I was wondering if there is a way to set this system related properties in pom.xml? like surefire:
http://maven.apache.org/plugins/maven-surefire-plugin/examples/system-properties.html

Owner

searls commented Sep 16, 2011

Good catch. I wonder if that logging setting will also suppress genuine errors during the build? I'd rather be able to let people set the level to error than just a big on/off switch, since debugging a headless runner with no error message is pretty difficult.

xsocher commented Sep 20, 2011

yes, I agree with you. Any possibilities to let me set following properties will be enough for me.

org.apache.commons.logging.simplelog.defaultlog=fatal or
log4j.logger.com.gargoylesoftware.htmlunit.DefaultCssErrorHandler=ERROR

Owner

searls commented Apr 6, 2012

+1. Anyone know how to do this?

On Apr 5, 2012, at 20:22, Bobby Peck
reply@reply.github.com
wrote:

+1


Reply to this email directly or view it on GitHub:
#31 (comment)

we're seeing a slew of warning messages as well since we introduced handlebars templating into our codebase:

Jun 2, 2012 11:59:49 PM com.gargoylesoftware.htmlunit.html.HtmlScript isExecutionNeeded
WARNING: Script is not JavaScript (type: text/x-handlebars-template, language: ). Skipping execution.

seems that htmlunit is looking for text/javascript, not x-handlebars-template. I also have run out of options to try other than modifying the HTMLScript source code.

torgeir commented Sep 20, 2012

+1

Collaborator

klieber commented Jan 13, 2016

Closing this issue because it hasn't been active in over 3 years. If this is still an issue with the current version of the plugin please add a comment with the latest information on the issue and I will reopen it.

@klieber klieber closed this Jan 13, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment