selenium - Text is blacked out when taking a firefox screenshot running headless with xvfb -
i have jenkins setup on amazon ec2 , running fine except tiny issue selenium. every time run whole suite of tests (~30 min), selenium gets stuck on test. i've take screenshot @ moment , seems there alert on screen, alert text blacked out.
i've run xvfb, started selenium, taken screen capture xwd , converted image imagemagick.
i've scoured internet , have no clue.
figured out. turns out it's font thing. i've run steps indicated below , can read text. it's still on dark green background, text readable.
on amazon ec2 ubuntu instance need to:
1) enable multiverse apt-get
- open
/etc/apt/sources.list
editor - on ec2 seems multiverse isn't present copied these lines file , saved
deb http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
2) sudo apt-get update
3) sudo apt-get -y install x-ttcidfont-conf cabextract ttf-mscorefonts-installer
- this bring shell gui, use arrow down, tab, , enter navigate
- accept eula
4) sudo dpkg-reconfigure x-ttcidfont-conf
- choose freetype fonts
Comments
Post a Comment