I am using capybara and selenium to run my cucumber test on my local machine. For the pages that involves javascript, Selenium activates firefox and crawls through the pages in firefox to do the tasks. They cooperates very well on my local machines.
However, in my staging environment, I do not have a GUI browser in it. Is there a way for selenium in a no-browser environment? Or is there any other way to test javascript with cucumber in a no-browser environment?
Yes there is a simple way to run firefox in headless if you’re running linux/mac. You can achieve this by using Xvfb standard xwindow utility. There is a gem that wraps it into ruby utility class headless