无SeleniumSelenium 安装: 克隆此存储库: $ git clone https://github.com/zeljkofilipin/selenium-vagrant.git 创建虚拟机: $ cd selenium-vagrant $ vagrant up # Please hold, your call is important to us... 登录到虚拟机: $ vagrant ssh 运行示例脚本: $ cd /vagrant $ ruby phantomjs.rb # creates phantomjs.png $ ruby fire