watir

Selenium vs Celerity?

Isn't Selenium better than Celerity when it comes to testing web sites cause real browsers like Firefox, Safari, Chrome and Internet Explorer could be used so that we know our website is compatible with each of them. So if I use Celerity (it's java browser), even if all tests pass, doesn't that mean my website could still be incompatibl...

watir-webdriver wait for page load

using watir-webdriver [ http://github.com/jarib/watir-webdriver ] how do i wait for a page to load after i click a link? at the moment i am doing sleep n but this is not ideal as the page response varies so much. is their a method to test whether the page is ready or whether their is a certain element in the page. I understand in t...

Selecting a dropdown option with no attributes with WATIR

Hi, I am having trouble selecting this with watir. I'm trying xpath and is able to try something like this browser.element_by_xpath("select/option[2]").text and it will return the text. but how would i select the text in the dropdown. Thanks <select> <option value="">--Select One--</option> <option value="test">NAME1</optio...

How to click a tab button

I have a JavaScript page in which there is a table row containing 4 horizontal buttons as tab menu. How to click particular button in a row? I tried with $ie.div(:id, 'tab4').click and $ie.row(:text, 'tab4').cell(:index, 2) but this does not work. ...

Watir / Ruby: How to get the text of the selected item in a drop down list?

Using Watir, how can I return the text of the currently selected item in a drop down list? It appears that getSelectedItems is deprecated. ...

Firewatir: Error when installing Firewatir on Windows

I am trying to install Firewatir on my PC (its OS is Windows). I have installed the jssh and test it. It is properly installed. After that, I tried to install the firewatir gem. So I ran this command: gem install firewatir Then, I got this error: ERROR: While executing gem ... (RunTimeError) Error installing firewatir: ...

How to access td tag and innertext of a web page

I have a web page in java script on that i have elements which is a innertext of element that is in td tag. ...

Automating a form post in Firefox

I go to a web form, enter some info into a number of fields on the form, click the Submit button (which does a POST) and get results. I do this frequently and would like to automate this process. I mainly use Firefox. I've looked at Watir but perhaps overkill for my needs. Suggestions? ...

undefined method `document' for nil:NilClass

Does anyone know how to resolve the problem "undefined method `document' for nil:NilClass", why does this error occur ? and what does that mean ? Now, i want to test website which include many iframe, and i did something to resolve "access denied" problem, then "undefined method `document' for nil:NilClass" occured, i did not know why, ...

Can you deploy Watir on Heroku to generate HTML Snapshots? If so, how?

I would like to generate HTML Snapshots using Watir, hosted on Heroku. Google's Full Specification for Making AJAX Applications Crawlable suggests using HTMLUnit... see How do I create an HTML snapshot? point #3. HtmlUnit is a Java-only headless browser emulator; and unfortunately jRuby is not an option on Heroku. So HtmlUn...

Variable scope with in different ruby file

hello sir, i am autpmating a web site that have different function page. i am making differnt modules for each function. the problem is that i have a login page Login.rb that has the below code :- $IE = Watir::IE.new_process module Login def Login.login(url) $IE.goto("url") sleep (4) $IE.maximize #$IE.span(:class =...

firefox and watir wouldn't work on windows due to a singularize method not found, what's wrong ?

Hi there, I just installed a fresh copy of ruby 1.8.7 on Windows XP SP3 32bits. Install watir. I used the wikipedia example : require 'rubygems' require 'watir/ie' Watir::Browser.default = 'ie' b = Watir::Browser.new b.goto("http://www.google.com") so far so good, works as expected now require 'rubygems' require 'watir/ie' ...

Firewatir: firewatir returns undefined method error in eclipse

Thank you for taking your time in reading this. I am just getting started with running Watir in Eclipse. When I try to load the require 'firewatir' statement on the top of the page, I receieve this error in the Eclipse console: in inherited': undefined methoddemodulize' for "FireWatir::Pre":String (NoMethodError) Running require firewa...

Issues with link on Watir and Safari?

Hi there, I am new in using watir but I can only imagine this to be a bug: require "watir" Watir::Browser.default = 'safari' b = Watir::Browser.new b.goto() => nil b.link(:title, "Start").click Leads me to the next page as expected but on the following page no link works even they are there b....

Is it possible to open a new tab in watir-webdriver?

The only thing that looks a bit like what I'm trying to achieve is this, but this works only for IE... for firefox I found that information, so is it not possible to open tabs, just new windows? And the attach method is accessing only already OPEN tabs/windows... Is there a way to decide to open a specific link in a new window/tab? I se...

Failed WATIR installation Server 2003

Hi all, I had to rebuild my box and I currently am unable to install Watir. gem install watir ERROR: Error installing watir: activesupport requires Ruby version >= 1.8.7. Which would be fine if Watir was able to use Ruby 1.8.7 . I am using ruby -v ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32] ge...

Alert box in Waitr Webdriver

I had a look here: http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups Every solution is for IE on Windows. I am using Firefox on Mac. Is there a way to click on OK of a JavaScript alert box? ...

WATIR: how do drive outlook web access

since the emails loads dynamically how do you find a specific email that contains a button back to your site. This is like signing up at a site. Customer receives email to confirm. Thanks for the support BigD ...

Rails App using Selenium but NOT for Testing -- How to organize ?

I am creating a rails app that is meant to be run locally and automate some of my web based tasks. The reason for rails is that I will import data in, select a number of tasks to be completed, then tell it to start. Ideally i will keep logs of runs and keep track of what tasks were completed during specific runs. My experience with...

Installing Watir-Web Driver on Fedora Linux

Hi there, I'm trying to install watir-webdriver by using "gem install watir-webdriver" on Linux. I have installed ruby 1.8.6, activesupport 2.3.8 as well as firewatir. However, when I try to install watir-webdriver, I get the following error: Building native extensions. This could take a while... ERROR: Error installing watir-webdr...