Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7180145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:17:14+00:00 2026-05-28T17:17:14+00:00

I need to run capybara-webkit inside a Rails application to enable headless web browsing

  • 0

I need to run capybara-webkit inside a Rails application to enable headless web browsing with JavaScript support (i.e. not for testing/CI purposes, and webrat or other acceptance testing drivers/frameworks will not work). I’m wondering if this is possible on a Heroku deployment, specifically because it requires QtWebKit and the ability to fork the webkit_server process with socket communication. I’m open to creative ideas on how to make this work on Heroku (e.g. a pool of worker dynos). I’m hoping someone has a better handle on what constraints exist in the Heroku environment, or can categorically rule out the possibility so I can move on to AWS EC2 if necessary.

Searching for this tends to turn up a lot about capybara testing and add-ons for CI servers, neither of which are relevant for my use case. I’m not testing anything (at least not in the traditional cucumber/rspec/etc sense) – I’m using Capybara’s integration with the webkit driver, finders and node/element model to navigate a website that requires a significant amount of client-side JS in order to work.

I’m also open to other (native Ruby) solutions for programmatically interacting with web sites using JavaScript-enabled DOM.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T17:17:14+00:00Added an answer on May 28, 2026 at 5:17 pm

    I spoke to Heroku support about this and their answer was that this is basically a) unsupported; b) very difficult, including (among other things) a statically built version of QtWebKit.

    My own investigation into this on Amazon EC2 also made me realize that QtWebKit requires a running instance of Xvfb. I highly doubt this would be available on Heroku, and I suspect it would be extremely difficult to make it work.

    My own approach has been to put this functionality on an EC2 instance. After making some attempts with Amazon’s standard AMIs (their build and RHEL), I found that the packages available through Ubuntu’s package management systems made it MUCH easier to get up an running.

    Long story short: Heroku is a non-starter, Amazon EC2 with Ubuntu is the best way to go.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

we need run one function periodically in Java web application . How to call
I need to run a JavaScript function onLoad(), but only do it if the
I need to run a stored procedure from a C# application. I use the
I need to run 8-10 instances of my application on IIS 6.0 that are
I've a legacy application using Asp.Net WebSite (winforms...) and I need run a background
What are the web-based clients for XMPP/Jabber. I need run IM client in browser
I'm building a Flex application that will need run under two different deployment scenarios:
I need to run a bash script as root (passwordless sudo or su not
I need to run execFunc(); not only when the user moves onto the next
I need to run a super long JavaScript on my page. The client is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.