Sha256: 66b69cd5efbdd9bbaee4b7f70c9bbaad5273f83bcbb441f9aeb0b3fc6338ccf9

Contents?: true

Size: 379 Bytes

Versions: 11

Compression:

Stored size: 379 Bytes

Contents

class NavBar < Superbara::POM

  def initialize(selector = "nav#mainNav")
    @elem = find selector
  end

  def item(wat)
    @elem.find("span", text: wat)
  end

  def tarjoukset_ja_vinkit
    item("Tarjoukset ja vinkit")
  end
end


visit "vr.fi"

wait do
  has_text? "Katso aikataulut"
end

nb = NavBar.new
nb.item("Tarjoukset ja vinkit").click
nb.tarjoukset_ja_vinkit.click

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
superbara-0.15.1 tests/pom_pcm_pcom/pom/main.rb
superbara-0.15.0 tests/pom_pcm_pcom/pom/main.rb
superbara-0.14.7 tests/pom_pcm_pcom/pom/main.rb
superbara-0.14.6 tests/pom_pcm_pcom/pom/main.rb
superbara-0.14.5 tests/pom_pcm_pcom/pom/main.rb
superbara-0.14.4 tests/pom_pcm_pcom/pom/main.rb
superbara-0.14.3 tests/pom_pcm_pcom/pom/main.rb
superbara-0.14.2 tests/pom_pcm_pcom/pom/main.rb
superbara-0.14.1 tests/pom_pcm_pcom/pom/main.rb
superbara-0.14.0 tests/pom_pcm_pcom/pom/main.rb
superbara-0.13.2 tests/pom_pcm_pcom/pom/main.rb