Questions tagged [celerity]

Celerity is a JRuby wrapper around HtmlUnit – a headless Java browser with JavaScript support. It provides a simple API for programmatic navigation through web applications. Celerity aims at being API compatible with Watir.

Celerity is a JRuby wrapper around HtmlUnit – a headless Java browser with JavaScript support. It provides a simple API for programmatic navigation through web applications. Celerity aims at being API compatible with Watir.

19 questions
10
votes
4 answers

Has anyone figured out a way to run the same cucumber scenario on multiple browsers/web drivers?

I'm using cucumber + capybara for some web automation testing. I'd love to be able to wire up my own tag (something like @all_browsers before the scenario) and have it run against a list of web drivers I set (celerity, selenium on firefox, ie and…
bergyman
  • 4,480
  • 3
  • 23
  • 32
3
votes
1 answer

Using celerity to login to saleforce.com on linux (w/ no gui), JS & VB errors

BACKGROUND: The script below logs into my salesforce.com account and tries to click a bunch of "download" links and save the resulting .zip export files locally. I'm using jruby and celerity (which is a jruby wrapper around htmlunit, a headless…
solidlight
  • 61
  • 5
2
votes
2 answers

Initializing culerity with capybara

I want to initialize culerity with capybara in ruby 1.9 i followed https://rvm.beginrescueend.com/integration/culerity/ for jruby integration of culerity and added below line to my features/support/env.rb file Culerity.jruby_invocation =…
Jai Keerthi
  • 5,395
  • 2
  • 16
  • 9
2
votes
2 answers

Running integration tests with Cucumber/capybara/celerity on a Jruby on Rails application using mysql

I've got an application I've been working on with ruby 1.9.1. I'd like to test the javascript in my UI and the default selenium driver for capybara doesn't support the events I need to test. So I'm going through the process of using rvm to switch…
biagidp
  • 2,175
  • 3
  • 18
  • 29
2
votes
2 answers

Is it possible to test a javascript-heavy web app with Cucumber without using rails?

I'm trying to set up Cucumber to test a PHP-based web app. The app has a lot of dynamic JavaScript-based functionality. From my Googling, it appears that this means I should go with Celerity/Culerity or Capybara for my web-browsing gem. However, I…
abeger
  • 6,766
  • 7
  • 41
  • 58
1
vote
1 answer

Celerity cannot follow a Devise redirect, because Celerity doesn't send an accept header and Devise responds with plain text

We've got a Rails application just upgraded to Rails3 using Devise's Rails3 gem for authentication. We've been using Capybara with Celerity backend to test some of the pages. When accessing the application in a browser, Devise responds with a…
Wolfram Arnold
  • 7,159
  • 5
  • 44
  • 64
1
vote
3 answers

Using Celerity to download a file

I'm using Celerity in JRuby to automate the download of some .csv files from certain websites. For one of the websites (LinkShare), I've gotten very close but cannot figure out the last step. The website pushes the file download using javascript…
Aaron
  • 188
  • 2
  • 8
1
vote
0 answers

celerity submit form by pressing enter

I'm trying to use celerity to submit a form. This form has a generated link that is called when the user hits the enter button. How do I trigger this? I know you can submit by finding the link / button and pressing .click(). But I want to submit by…
Andy
  • 1,129
  • 1
  • 9
  • 13
1
vote
1 answer

Is it possible to run Jruby/Celerity scripts via Excel VBA and output the results to Excel

I have some Jruby/Celerity scripts that I would like to run from Excel VBA and then output the script results to an Excel sheet. Is this possible? Can anyone suggest a potential approach or some potential resources. What I'm hoping to…
Mutuelinvestor
  • 3,384
  • 10
  • 44
  • 75
0
votes
1 answer

Is there a way to identify bolded () with Celerity

I'm using celerity to do some screen scraping and have come across the need to identify text elements that are in bold. Celerity offers a strong method but does not offer a bold method. Has anyone figured out a clever way around this with Celerity…
Mutuelinvestor
  • 3,384
  • 10
  • 44
  • 75
0
votes
1 answer

Can't click a certain button in Celerity + Jruby

Oh masters of screen scraping. I'm using jruby and Celerity (both newest versions), and I CANNOT figure out how to click this button. Here is the HTML code:
0
votes
1 answer

click button in jruby + celerity

I'm trying to do some screen scraping, and I've gotten down to this last step. I'm trying to download a file, which is accessed via a button from the following html:
0
votes
1 answer

Save IO object to a file on Ruby

Im scraping a website using Celerity gem and I want to save an image but I dont know how to do it XD With the next Celerity command I get an IO object irb(main):260:0* image = @browser.image(:xpath, ".//*[@class='notdTop']/img").download =>…
EmP
  • 11
  • 2
0
votes
1 answer

Celerity - Help with popup_browser select list that updates div text on main browser

I'm screen scraping a page that includes a link that spawns a popup window that is comprised of a select list and a button to execute your selection. The objective is to click the link on the main page, make a selection on the pop-up window, click…
Mutuelinvestor
  • 3,384
  • 10
  • 44
  • 75
1
2