Sha256: b7499cd3fe1bdff256eab9d51f2b05ff1fac0fac384c59e2f54add345770bb05

Contents?: true

Size: 314 Bytes

Versions: 6

Compression:

Stored size: 314 Bytes

Contents

# This class is example of web page
class ExamplePage < Howitzer::Web::Page
  path '/'
  validate :url, %r{\A(?:.*?:\/\/)?[^\/]*\/?\z}

  section :menu

  element :search_input, :fillable_field, 'lst-ib'
  element :search_btn, :button, 'btnK'

  def fill_keyword(data)
    search_input_element.set(data)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
howitzer-2.2.0 generators/web/templates/example_page.rb
howitzer-2.1.1 generators/web/templates/example_page.rb
howitzer-2.1.0 generators/web/templates/example_page.rb
howitzer-2.0.3 generators/web/templates/example_page.rb
howitzer-2.0.2 generators/web/templates/example_page.rb
howitzer-2.0.1 generators/web/templates/example_page.rb