lib/travian_bot/application/navigation.rb in travian_bot-0.2.2 vs lib/travian_bot/application/navigation.rb in travian_bot-0.2.3

- old
+ new

@@ -19,12 +19,15 @@ def to_reports_page(selenium) to_page(selenium, 'reports') end + def to_hero_quest_page(selenium) + selenium.navigate.to @url + "hero_adventure.php" + end + private def to_page(selenium, target) - wait = Selenium::WebDriver::Wait.new link = selenium.find_element(:xpath, "//ul[@id='navigation']/li[@class='#{target}']/a") link.click end end end \ No newline at end of file