所以这是我的错觉......我正在尝试让页面对象启动并运行,我之前已经做过一千次了,但我现在遇到了一个名称错误。是早上太早还是我在这里错过了什么?它不断抛出 NameError
class LoginPage
include PageObject
text_field(:user, :id => 'username')
text_field(:pass, :id => 'password')
button(:login_button, :name => 'login')
def login (username, password)
self.user = username
self.pass = password
self.login_button.click
end
end
运行黄瓜
uninitialized constant LoginPage::PageObject (NameError)
env.rb 有
require 'page-object'
看屏幕截图