Module: TravianBot::Application::Navigation

Included in:
Buildings, Hero
Defined in:
lib/travian_bot/application/navigation.rb

Instance Method Summary collapse

Instance Method Details

#to_hero_quest_page(selenium) ⇒ Object



24
25
26
# File 'lib/travian_bot/application/navigation.rb', line 24

def to_hero_quest_page(selenium)
  selenium.navigate.to @url + "hero_adventure.php"
end

#to_map_page(selenium) ⇒ Object



12
13
14
# File 'lib/travian_bot/application/navigation.rb', line 12

def to_map_page(selenium)
  to_page(selenium, 'map')
end

#to_reports_page(selenium) ⇒ Object



20
21
22
# File 'lib/travian_bot/application/navigation.rb', line 20

def to_reports_page(selenium)
  to_page(selenium, 'reports')
end

#to_resources_page(selenium) ⇒ Object



4
5
6
# File 'lib/travian_bot/application/navigation.rb', line 4

def to_resources_page(selenium)
  to_page(selenium, 'resources')
end

#to_stats_page(selenium) ⇒ Object



16
17
18
# File 'lib/travian_bot/application/navigation.rb', line 16

def to_stats_page(selenium)
  to_page(selenium, 'stats')
end

#to_village_page(selenium) ⇒ Object



8
9
10
# File 'lib/travian_bot/application/navigation.rb', line 8

def to_village_page(selenium)
  to_page(selenium, 'village')
end