Headless browser testing for heroku - heroku

Could someone help with the suggestions on how to do headless testing in heroku?
We have developed a script on firefox with opening the browser using selenium.
Is there a way to set any browser options or config to run without headless using the same code with minimal changes.
Thanks.

Yes, you have two options you can use in the browser instead of Firefox : htmlunit and phantomjs.
I use htmlunit and it works great.

Related

Not able to execute Silk4J test scripts in Mozilla Firefox browser, Can anybody help me out?

I am using Silk4J tool for automating a web application.I have recorded actions from IE browser and I want to execute the generated script in Mozilla Firefox browser but not able to execute the same.Firefox browser gets opened but no further actions are performed and hence the script is failing.Can anybody help me in this scenario?
Upgrade to Silk Test 16 HF2. Older versions of Silk Test don't support FF35+.

How to open browsers in private/incognito mode with selenium?

I'm writing Selenium tests in Ruby to test my website in multiple browsers.
However, the tests won't fire correctly unless the cookies are clear(there are triggers I'm testing that only happen X number of times and is stored in a cookie).
Does anyone know how to have selenium open a browser in its private browsing or incognito mode with Selenium or have another idea on how I might solve the issue?
You can get Chrome to start in incognito by default.
There's a solution for Windows at the bottom of the link below... If you're not using Windows, you can Google how to achieve this for you OS =)
https://productforums.google.com/forum/#!topic/chrome/sYaZkNW8II4

Why does firefox open when I run tests instead of the default browser chromium?

I have chromium set as my default browser. Every time I run rspec and capybara my firefox browser opens. I prefer to use chrome/chromium for development and personal use, so how do I get chromium to start opening when I run tests?
You should use chrome driver for capybara. Please have a look at this answer:
https://stackoverflow.com/a/7512626/582792

Record and replay of GWT site using imacros is not working

Hope anyone has come across this. I have been using imacros plugin to record/replay web pages on firefox. It works very well except for GWT pages. For a GWT and smart gwt based webpage, imacros simply clicks on the row and does nothing.
Any suggestions or alternatives would be very helpful.
update: also tried dejaclick plugin for firefox which seems to work partially.
Thanks
San
Try using Selenium if you are trying to automate testing. It also comes with a simple record/play firefox plugin.
Selenium Firefox plugin - http://seleniumhq.org/projects/ide/
Selenium 2 Driver by coding sample - http://c.gwt-examples.com/home/testing/selenium-testing

Run Google Chrome or Firefox Windowless from the Command Line

I need to automate a task to pull down a set of web pages and process the HTML. Before someone suggests using wget or curl, I need some JS to execute to change the DOM.
I'd like to script Chrome or Firefox to fetch the HTML and render the JS without actually spawning a visual interface. I haven't been able to figure out how to do this.
Does anyone have any suggestions?
Use Selenium RC.
Selenium Remote Control (RC) is a test tool that allows you to write
automated web application UI tests in any programming language against
any HTTP website using any mainstream JavaScript-enabled browser.

Resources