lib/travian_bot/application/connection.rb in travian_bot-0.2.2 vs lib/travian_bot/application/connection.rb in travian_bot-0.2.3
- old
+ new
@@ -3,12 +3,12 @@
class TravianBot
class Application
module Connection
# Login in to travian page
def login
- url, user, password = get_credentials
+ @url, user, password = get_credentials
driver = Selenium::WebDriver.for :firefox
- driver.navigate.to(url)
+ driver.navigate.to(@url)
# Get the form fields.
name_input = driver.find_element(:name, 'name')
password_input = driver.find_element(:name, 'password')
login_button = driver.find_element(:id, 's1')
# Login
\ No newline at end of file