Help required on running selenium test scripts headless
Hi,
I need to run "Selenium" test scripts (written inside TestNG) on a headless linux server (Red Hat Enterprise Linux Server release 5.3) using Xvfb. while executing the script, I get the following warnings in the "server.log" file.
Warning: Cannot allocate colormap entry for "#c0c0c0"
Warning: Cannot allocate colormap entry for default background.
This warnings occurs when the script try to launch Firefox. Firefox is not getting launched and the code gets hanged in the middle, without executing any test case.
I suspect the problem could be with the Xvfb's screen resolution. screen resolution might be lesser than firefox's expected resolution.
we can be able to specify our own display in POM file using <display> tag. similarly can we able to specify resolution also ?..
Pls help me out. Thanks in advance.
|