added capybara helper to find state
added capybara helper to find state