module OA
  class ViewSubAccountPage < OA::BasePage
    page_url "/subaccount/viewsubaccount/subaccount_id/<%=params[:subaccount_id]%>"

    h1(:subaccount_page_title) { div_element(id: "item").h1_element }
    table(:subaccount_table, id: "sub-account-contacts-table")
    link(:first_login_link) { subaccount_table_element[1]["Login"].link_element(text: /\S/) }
  end
end
