Carlos Troncoso
Carlos Troncoso

Reputation: 683

Automating browser actions on a headless server

I'm looking for a ruby solution to automate web accions on a headless server (no xwindows).

What I need is to daily export a file from a webapp and import it to other web app in other server.

I've seen Selenium, Capybara, Nokogiri, but I'm confused with their differences/similarities. Selenium seems to require a browser running, which I can't have as there is no X to run it. Nokogiri can use Webkit on a headless server, but can't figure out if it can actually download/upload files.

Any pointer would be appreciated.

Upvotes: 0

Views: 95

Answers (2)

Max
Max

Reputation: 5101

It's not Ruby, but...I'd strongly consider using something like PhantomJS (+ CasperJS, perhaps) or Zombie.js. They're all JavaScript, but...I'd still see if you can make them work.

Upvotes: 0

ptierno
ptierno

Reputation: 10064

I would suggest mechanize. I'm not sure that you need something like selenium for a task like this.

This gem should be able to accomplish what your looking for.

Upvotes: 1

Related Questions