Questions tagged [watir-webdriver]

Watir, short for Web Application Testing in Ruby (pronounced as "water"), is a set of open-source Ruby libraries created for automating web browsers. The main developers behind Watir are Bret Pettichord and Paul Rogers. This tool is distributed as a Ruby GEM under the name 'Watir'.

What is the best way to efficiently distribute shared page objects and cucumber step definitions across various Ruby projects?

I am working on several projects that require the use of shared step definitions and page objects in cucumber tests. Rather than duplicating these common elements in each project, I would like to find a way to share them across multiple projects. Has anyo ...

PHP's shell_exec function does not support executing the command "Watir::Browser.new :firefox"

I've recently started learning about ruby and Watir, and I'm facing a problem... I have a MySQL database containing test data that I need to access. Over time, I have built up a collection of PHP tools for interacting with this data, such as mar ...

Discover the proper technique for clicking on a nested element using Watir

Having trouble selecting the option "Mr" from the dropdown list. I've attempted various methods without success. Even using xpath, which is normally reliable, has proven ineffective in this particular situation. $browser.element(:xpath, "/html/body/ ...

Leveraging ruby/watir/page_object for testing a jQuery UI autocomplete feature (AJAX)

Currently, I am utilizing a combination of jRuby, watir-webdriver, and Page Object for conducting tests on a web application. Within the application, there exists a jquery autocomplete widget that yields responses from the backend database following an un ...

"Incompatibility between Ruby + watir-webdriver and Selenium Grid2 causes an exception

Using selenium-server-standalone-2.18.0.jar. Configured the hub and node on the same host. Executing the client code on a separate host. Observing in the hub console, I notice that one of the nodes has connected with 5 firefox icons. Upon running my clien ...

Dealing with EOFError and Errno::ECONNREFUSED in Watir-Webdriver

As I run a DelayedJobs queue utilizing Watir-Webdriver (with Headless and Firefox) to gather data from the web multiple times each hour, I am facing sporadic EOFError and ECONNREFUSED errors. The script is quite straightforward - it navigates to a website ...

Unexpected misalignment in Watir/Capybara and PhantomJS

Looking to pinpoint the exact location of elements on a page using Watir and PhantomJS, I attempted to use Capybara as well, but encountered the same offset issue. While the alignment of elements on the left side appears correct, those on the right side s ...

Setting a personalized user data folder in Firefox with Watir-Webdriver/Selenium

Using Chrome Driver, I am able to initialize a new browser session with a specific user data directory. This ensures that all cookies, bookmarks, and cache are stored in a separate profile folder. If the folder does not exist, it will create one; if it doe ...

Executing a click action with Watir WebDriver that does not require waiting for the page to fully load

My webpage has a unique feature where one side refreshes when a button is clicked on the other side. I am curious to see if the site will malfunction if I click the buttons too quickly, not allowing enough time for the right side to fully load. Currently, ...

PageFactory error: incorrect amount of parameters provided (2 instead of 1)

Currently implementing the page factory pattern and encountering Argument errors in multiple locations. This is the code for my Homepage class: require 'page-object/page_factory' class Homepage include PageObject include Configuration def init ...

Is "browser.text.include?" producing inaccurate results? (combining watir-webdriver and cucumber)

Does anyone know how to validate an error message when a form is submitted with a required field left empty? def usertabfieldvalidation @session.button(:class, "btn-primary").click @session.text.include?('Giant Ger ...

Issue with watir webdriver script not running successfully in Jenkins platform

I recently set up Jenkins on my local machine and now I want to run a watir webdriver script in Jenkins that is currently running successfully through the command prompt. Below is the basic watir script: require 'watir-webdriver' b=Watir::Browser.new b.go ...

Connection to Firefox at 127.0.0.1:7055 on CentOS could not be established within the 60-second time frame

Encountering the following error message: unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055) when executing this code: require 'watir-webdriver' require 'headless' headless = Headless.new headless.start begin ...

When attempting to click on an element using watir-webdriver, the process failed with the error message "Runtime.evaluate threw exception: Error: element is not attached to

Explanation of HTML Attributes <li class="filter-categ"> <ul class="l-h-list"> <li id="filter__entityBased" class="item filter_value" filter-name="entityBased" search- name="zone/concept/store_based">Zone/Concept/Store base ...