Class: Drobots::EuservRechnung

Inherits:
Drobot
  • Object
show all
Defined in:
lib/drobots/euserv_rechnung.rb

Constant Summary

Constants inherited from Drobot

Drobot::BASEDIR, Drobot::VERSION

Instance Method Summary collapse

Methods inherited from Drobot

#credential, #download, #initialize, #prefix, #title

Constructor Details

This class inherits a constructor from Drobot

Instance Method Details

#runObject



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/drobots/euserv_rechnung.rb', line 4

def run
  visit "https://support.euserv.de/"

  find('input[name=email]').set(username)
  find('input[name=password]').set(password)
  find('select[name=form_selected_language]').set('de')

  click_button 'Login'
  click_link 'Customer Account / Invoices'
  first('form[name=billform]').find('input[name=pdfpic]').click
end