我是 ruby 的新手,我似乎已经成功安装watir-webdriver
和webdriver-user-agent
gems,但是当我尝试按照这里的说明进行操作时,我偶然发现了。如何进行?
>> require 'watir-webdriver'
=> true
>> require 'webdriver-user-agent'
=> true
>> driver = UserAgent.driver(:browser => :chrome, :agent => :iphone, :orientation => :landscape)
NameError: uninitialized constant UserAgent
from (irb):3
from /usr/bin/irb:12:in `<main>'