-
-
Save anonymous/e9f99140d758c0a9cee6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## http://www.pouparbem.com/alqapps/especial/news.php | |
## insert stuff into the mention website above | |
require 'mechanize' | |
agent = Mechanize.new | |
agent.get('http://www.pouparbem.com/alqapps/ruby_standard.php') | |
insere = agent.get('http://www.pouparbem.com/alqapps/ruby_standard.php') | |
dia = insere.form.fields(:name => 'DATAHORA') | |
dia.value = ARGV[0] | |
prioridade = insere.form.fields(:name => 'PRIORIDADE') | |
prioridade.value = ARGV[1] | |
camp = insere.form.fields(:name => 'IDCAMPANHA') | |
camp.value = ARGV[2] | |
button = insere.form.buttons(:name => 'Agendar') | |
click_button(button) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment