Module: TheInternet::Page::Secure

Defined in:
lib/page/secure.stub.rb

Instance Method Summary collapse

Instance Method Details

#logoutObject

Note:

Defined as link :logout

Clicks logout



36
37
38
# File 'lib/page/secure.stub.rb', line 36

def logout
  # This is a stub, used for indexing
end

#logout?Boolean

Returns true if the logout element is present on the page.

Examples:

TheInternet::Page::Secure.perform do |secure|
  expect(secure).to be_logout
end

Returns:

  • (Boolean)

    true if the logout element is present on the page



56
57
58
# File 'lib/page/secure.stub.rb', line 56

def logout?
  # This is a stub, used for indexing
end

#logout_elementWatir::Link

Returns The raw Link element.

Examples:

TheInternet::Page::Secure.perform do |secure|
  expect(secure.logout_element).to exist
end

Returns:

  • (Watir::Link)

    The raw Link element



47
48
49
# File 'lib/page/secure.stub.rb', line 47

def logout_element
  # This is a stub, used for indexing
end

#welcome_messageString

Note:

Defined as h4 :welcome_message

Returns The text content or value of welcome_message.

Returns:

  • (String)

    The text content or value of welcome_message



9
10
11
# File 'lib/page/secure.stub.rb', line 9

def welcome_message
  # This is a stub, used for indexing
end

#welcome_message?Boolean

Returns true if the welcome_message element is present on the page.

Examples:

TheInternet::Page::Secure.perform do |secure|
  expect(secure).to be_welcome_message
end

Returns:

  • (Boolean)

    true if the welcome_message element is present on the page



29
30
31
# File 'lib/page/secure.stub.rb', line 29

def welcome_message?
  # This is a stub, used for indexing
end

#welcome_message_elementWatir::H4

Returns The raw H4 element.

Examples:

TheInternet::Page::Secure.perform do |secure|
  expect(secure.welcome_message_element).to exist
end

Returns:

  • (Watir::H4)

    The raw H4 element



20
21
22
# File 'lib/page/secure.stub.rb', line 20

def welcome_message_element
  # This is a stub, used for indexing
end