Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [watir-webdriver]

Watir-webdriver is an open source framework for testing web applications. It is a Ruby implementation of Webdriver and allow supported browsers IE, Firefox, Chrome and HTML Unit to be driven using the Watir API.

0
votes
0answers
27 views

Tool to record WATIR scripts?

I need a tool to record browser action and generate WATIR scripts. Is there any tool available for this?
0
votes
1answer
180 views
4
votes
2answers
357 views

Force a browser's visibility setting to true

I'm trying to set up some specs against a real (not headless) browser but some of the javascript on the target page only runs if the browser is visible (it doesn't need to be the active app). I've ...
1
vote
0answers
116 views

How to inspect an element with multi attributes by OR operator in Page Objects model in watir?

I have a problem when trying to find an element with different attribute as sample bellow <i>bold</i> Sometime <i class='icon'/i> I want to try inspecting this element with OR ...
2
votes
1answer
239 views

Test automation script with ruby, watir-webdriver to run in Safari browser in Windows?

I found in different places that, automation with safari can be done in MAC OS as safari is also an Apple product. But, we can download and install safari browser in windows and test there manually. ...
0
votes
1answer
141 views

Is it good to learn Selenium with Ruby? [closed]

Is it good to learn Selenium with Ruby? Will it have market demand in coming years. I already have worked in Java and C# Selenium for 1 year each. I mean learning watir webdriver.
7
votes
3answers
379 views

Structuring Selenium tests to avoid duplication

I'm refactoring our test suite to take advantage of page object pattern. I'm missing how to structure the actual tests. Lets say that I want to test StackOverflow posting and deleting. Once scenario ...
2
votes
1answer
688 views

Regarding running Watir scripts for UI Automation from Jenkins CI - How to hook up Jenkins and watir-automations

I already have Watir-Ruby scripts running on a macintosh which uses Firefox as the browser to run the automation. I have been given a linux server where the Jenkins build is going on. I got to put my ...
1
vote
1answer
1k views

How can find iframe which is DIV > Iframe > form > text field with watir-webdriver [closed]

I am trying to target email text field inside form which resides in iframe . <div class="iframecontainer"> <div class="iframe"> <div class="headerText resultHeader">Result:...
1
vote
1answer
932 views

How Can i build Data Driven framework with Watir Webdriver where test data will be excel files

I need help to build data driven framework for WATIR Webdriver. Here my concern is, can we build data driven framework by reading data from excel in Watir-webdriver as we have option in Selenium+...
1
vote
1answer
177 views

Pre-load database for testing

I'm a bit new to mocking data for testing. I'm using ruby in conjunction with watir-webdriver and I have a local version of the app. I'd like to run a script which empties the tables of the local ...
1
vote
1answer
604 views

Best resources for learning Ruby/Cucumber/Rspec test suite organization and refactoring [closed]

I'm working with a Cucumber suite that needs refactoring and organization. The end goal is to have a maintainable suite of tests that matter enough that developers will stop if the cucumber tests are ...
2
votes
1answer
2k views

Wait until the text-field values are fetched through API in Watir-WebDriver

I am writing the registration script where the API is being called in company registration no field and it fetches all the data regarding company and fill it automatically in according field like name,...
1
vote
2answers
262 views

Validate worksheet name using WATiR

How to validate the worksheet name / file name of Excel and CSV files in WATiR? Because if we save the CSV file in with different name, the worksheet name will also change while in Excel it will ...
5
votes
1answer
1k views

Watir WebDriver in conjunction with Java [closed]

Is it possible to use Watir WebDriver in conjunction with Java? I have to execute some Java methods for dealing with data in DB in order to simulate different situations and test website UI using ...
4
votes
2answers
2k views

Watir, Selenium::WebDriver for Chrome?

I've been using Watir for a month or so now and use profile = Selenium::WebDriver::Firefox::Profile.new profile.proxy = Selenium::WebDriver::Proxy.new :http=> proxy # proxy = "IP:Port" This ...
6
votes
2answers
2k views

Is drag-and-drop possible in watir-webdriver?

I would like to drag-and-drop one element to the position of another, triggered from within a watir-webdriver script. By "drag-and-drop" I mean picking up a draggable element and releasing it on ...
8
votes
3answers
5k views

Good Watir or Watir-Webdriver tutorials/resources for new-to-automation testers?

There are at least two really good books for Selenium beginners, and quite a few courses/tutorials out there, as well as a lot of blogs. However, I haven't seen quite as much out there for Watir - I'...
5
votes
4answers
4k views

How can I select a file to put into a file_field without using the absolute path with Watir / Ruby?

For example, consider the following script: require 'rubygems' require 'watir-webdriver' browser = Watir::Browser.new(:firefox) browser.goto("http://tinypic.com/") file = "C:\\\\assets\\image....