Sorry about this. It looks like the markup on the login page has changed, and it now has multiple forms containing fields labeled
submit. The test is picking up one of the email fields on a form that’s hidden.
The good news is that the fix is easy. By switching to XPath, we can focus on the specific form controls we need:
EmailField = '//div[@id="content"]//input[@name="email"]'
PasswordField = '//div[@id="content"]//input[@name="password"]'
SubmitButton = '//div[@id="content"]//button[@type="submit"]'
Given /^I am logged in$/ do
browser.text_field(:xpath => EmailField ).set ENV['PRAG_EMAIL']
browser.text_field(:xpath => PasswordField).set ENV['PRAG_PASSWORD']
browser.button(:xpath => SubmitButton).click
Good catch, and thanks for writing in. The next beta (in a couple of weeks, most likely) will contain the fix.