Questions tagged [firewatir]

FireWatir stands for "Web Application Testing in Ruby for Firefox". FireWatir is a free, open-source functional testing tool for driving the Firefox browser the same way an end user would. It clicks links, fills in forms, presses buttons and checks results.

FireWatir stands for "Web Application Testing in Ruby for Firefox". FireWatir (pronounced firewater) is a free, open-source functional testing tool for automating browser-based tests of web applications. It works with applications written in any language. FireWatir drives the Firefox browser the same way an end user would. It clicks links, fills in forms, presses buttons. FireWatir also checks results, such as whether expected text appears on the page, or whether a control is enabled. FireWatir is a Ruby library that works with Firefox on Windows. It also works on Linux, Mac but without support for JavaScript popups.

FireWatir has been deprecated and replaced by Watir-Webdriver.

84 questions
19
votes
7 answers

How to use watir-webdriver to wait for page load

Using watir-webdriver, how do I wait for a page to load after I click a link? At the moment I am using: sleep n But this is not ideal as the page response varies so much. Is there a way to test whether the page is ready or whether there is a…
user138095
13
votes
2 answers

Alternatives to FireWatir working with Firefox 4 or higher

It seems, from what I read, that we will not have a JSSH for Firefox 4, and therefore no FireWatir. I have several scripts that run well on FireWatir, and of course I would like to update my Firefox to v4. I would hate to rewrite all my scripts in a…
carlo.borreo
  • 1,344
  • 2
  • 18
  • 35
10
votes
5 answers

Ruby Watir: Clicking OK on JavaScript Alerts?

Seems none of the code I've tried has any affect. My intention is to close any and all JavaScript prompts that may come up by hitting the "OK" button. Problem is, my script has no affect on the prompts that come up. In other words, it does…
Marco
  • 4,345
  • 6
  • 43
  • 77
7
votes
2 answers

How to determine browser type (IE, FF, Chrome, etc.)

I'm in the process of switching my Watir / FireWatir scripts over to use watir-webdriver and need a means in watir-webdriver to determine which type of browser the test is currently being executed against, (IE, FF, Chrome). With Watir / FireWatir…
Joe
  • 71
  • 2
5
votes
3 answers

Watir: How to access a table without an ID or NAME

I am trying to write my watir script to grab the following data (the table body headers and the table row data, but I am having trouble trying to figure out how to access the table. (Once I get that, teh rest is a piece of cake). Can anyone come up…
NinjaCat
  • 9,974
  • 9
  • 44
  • 64
4
votes
2 answers

Can Watir interact with Firefox Extensions?

I know that with watir-WebDriver, I can make use of RubyBindings to have the browser load specific profiles or Firefox add-ons when I create a new browser instance. However, can I use Watir to actually use the add-on(s) I open? The reason I ask is…
Kotsu
  • 374
  • 1
  • 5
  • 22
4
votes
6 answers

How do I check for text inside a

I am trying to access some text that is located in a DIV. I need to check to see if the page holds the text so I can return a true or false. The code I am using is below: cancel = browser.text.include?("Current Cancelled") if cancel == true puts…
Curtis Miller
  • 580
  • 1
  • 9
  • 31
4
votes
1 answer

In Firewatir, how can I interact with the Firefox print dialog?

I'm trying to test a page that has the print dialog appear immediately upon accessing it. All I need to do is close the dialog or click Cancel on it so I can interact with the page behind it. I've tried to figure out how to do this, but everything…
Roderick
  • 2,383
  • 3
  • 20
  • 33
3
votes
1 answer

Issues with firewatir

Is jssh extension for firefox 4 available?
Chandiran
  • 153
  • 1
  • 2
  • 7
3
votes
1 answer

How do I send keyboard commands like (Control) + (1) to the browser using Ruby and FireWatir?

I am using FireWatir to test a web app and I need to send CTRL + 1 to open up a connection to plugin text "LTN 123456" and send CTRL +2 to close the connection.
Curtis Miller
  • 580
  • 1
  • 9
  • 31
3
votes
2 answers

Firewatir: Problems changing selection in select list

I'm new to FireWatir and having some issues changing a selection in a select list. Here's what the HTML looks like: