2

I have a jenkins setup on amazon ec2 and everything is running fine except for a tiny issue with Selenium. Every time I run the whole suite of tests (~30 min), Selenium gets stuck on a test. I've take a screenshot at that moment and it seems that there is an alert on the screen, but the alert text is all blacked out.

xvfb on ec2, alert

I've run xvfb, started selenium, then taken my screen capture with xwd and converted that image with imagemagick.

I've scoured the internet and have no clue.

4

1 回答 1

1

弄清楚了。原来这是一个字体的东西。我已经运行了下面指示的步骤,现在我可以阅读文本了。它仍然是深绿色背景,但文本是可读的。

在亚马逊 ec2 ubuntu 实例上需要:

1) 为 apt-get 启用多重宇宙

  • /etc/apt/sources.list使用任何编辑器打开
  • 在 ec2 上似乎不存在多元宇宙,因此将这些行复制到文件中并保存
    • 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

  • 这将调出 shell gui,使用向下箭头、制表符和回车键进行导航
  • 接受 EULA

4) sudo dpkg-reconfigure x-ttcidfont-conf - 选择freetype字体

于 2013-08-23T23:08:23.457 回答