Exception: SeleniumPage::Page::Errors::AlreadyDefinedElementName

Inherits:
StandardError
  • Object
show all
Defined in:
lib/selenium_page/page/errors.rb

Overview

AlreadyDefinedElementName

Instance Method Summary collapse

Constructor Details

#initialize(element_name) ⇒ AlreadyDefinedElementName

Returns a new instance of AlreadyDefinedElementName.



10
11
12
# File 'lib/selenium_page/page/errors.rb', line 10

def initialize(element_name)
  @element_name = element_name
end

Instance Method Details

#messageObject



14
15
16
# File 'lib/selenium_page/page/errors.rb', line 14

def message
  "The element '#{@element_name}' is already defined"
end