robotframework-selenium2library-java
robotframework-selenium2library-java copied to clipboard
Strange "log4j:ERROR setFile(null,true) call failed"
Whenever I do the keyword: Open Browser ${URL} firefox, I get this strage error: http://pastebin.com/TnhaE4Xh .
The tests still run fine. But it seems that because of this error, I cannot use ff_profile_dir argument to specify a profile. Also, If I use ffProfileDir instead of ff_profile_dir, I get this error http://pastebin.com/Kx5cfQSx .
I started getting this error on Selenium2Library12.0.0.13-jar-with-dependancies and I still get it with Selenium2Library1.4.0.0-jar-with-dependancies. I'm not entirely sure if this is something related to my environment or jython and I was wondering if anybody can help me out.
I am using the standalone robotframework jar for Selenium2Library1.4, but I used the python+jython version of RF when I was using Selenium2Library1.2.
Thanks.
This is somewhat weird, because the Selenium2Library has no runtime dependency to log4j. Log4j is also not included in the fat jar. Could you search in all of your jars in the classpath for a log4j.properties file? Simply unzip every jar in a directory.
Hello. I checked my project and it seems that I had log4j.jar included in the classpath. I removed it and I dont get that error.
But it seems that selenium still isn't using the profile that I specify.
Ok. Now I see the problem. The Java code of the Open Browser code is from a time, when I did not understand how named arguments are working. It still checks for null and not "NONE".