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 ...
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 ...
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/ ...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
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 ...
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 ...