I am using page factory pattern,
Here is My class Homepage:-
class Homepage
include PageObject
include Configuration
def open
goto("url")
end
def sign_in
@browser.element(css: 'div.links-static ul li.account div#login_user_data a.account').click -------------> I am getting the error here
end
def create_account
@browser.element(css: 'div.ml_function.ml_function_arrowtoptoleft.padding_top_twenty.height_fifty input.ml_function_button_createaccountRegister').click
end
end
When(/^I click on sign in$/) do -------------> I am getting the error here
on(Homepage).sign_in
end
Scenario: User needs to create a new account
Given I am on xxx homepage
When I click on sign in -------------> I am getting the error here
And I fill the user information
And I click Create Account
Then I should see the user details