Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automating Interaction with website - Rails

I'm trying to automate logging in and posting some stuff on a website, but I can't use Mechanize since there are many javascript actions involved. I was wondering if there were any other gems/tools to use that support javascript.

I tried Watir as well, but it involves having a browser, and I would like a browser-less option.

Thank you,

like image 600
user1069624 Avatar asked Mar 10 '26 08:03

user1069624


1 Answers

There are several options:

  • PhantomJS
  • capybara-webkit
  • Selenium webdriver

Read more about how to use them for example with capybara here: https://github.com/jnicklas/capybara#drivers

like image 88
Agush Avatar answered Mar 12 '26 22:03

Agush



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!