Ruby is a dynamic, reflective, object-oriented, general-purpose programming language.

learn more… | top users | synonyms

2
votes
1answer
148 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 ...
6
votes
5answers
14k views

Is it possible to stop page loading on the browser using selenium web-driver?

I searched online, but couldn't find anything about how to stop page loading over a browser using selenium web-driver. Any idea for the same?
4
votes
0answers
56 views

How to Run tests in parallel with Spinach BDD framework?

Currently in our company we use Spinach as a BDD framework and test runner for our automated acceptance tests. We also use Selenium as a browser driver, Capybara as an additional layer on top of it ...
1
vote
3answers
1k views

Finding grandparent of an element using xpath in selenium

I want to click the parent of an element if the text within the child matches a certain string. I am using contains to find the text and :xpath,"../../" to find the parent. Here is ruby code: ...
0
votes
0answers
17 views

After upgrade OS X from 10.11 beta to 10.11.4 release RubyMine can't run RSpec

I try run RSpec tests from RubyMine, and get error: Error running Run spec 'foo_spec': foo: Cannot find RSpec runner script for ruby-2.0.0-p481 SDK
1
vote
1answer
49 views

What frameworks are good for a beginner in automated functional testing? [duplicate]

I want to start doing some functional testing. I tried some time ago in Java and Selenium, but seemed to run into a number of problems with configuration. Previously I have made simple tests with ...
0
votes
0answers
8 views

How to use different drivers such as Safari and IE with Capybara

We have test suites written in Ruby using Rspec. They run locally on OSX and in Vagrant/ci/production on Ubuntu. How and where can I set or change the driver being used? Also if I try to use safari ...
1
vote
0answers
33 views

how to use multiple wait conditions in selenium-webdriver using ruby?

I wanted to know, how I can use following waits in program in which situation? driver.manage.timeouts.implicit_wait = 20 driver.manage.timeouts.script_timeout = 20 driver.manage.timeouts.page_load = ...
0
votes
1answer
33 views

Rubymine / Cucumber: Tests run fine, but are shown as “Failed to start” in Event Log

I have several Cucumber tests that are running fine (I closely watch them), all pass, and everything works good. But Event Log in Rubymine keeps showing all the tests that pass in this way: Failed to ...
5
votes
2answers
783 views

Which has the better support for Selenium, Python or Ruby? [closed]

I need to use Selenium to do some automating testing. Which language has better support for Selenium? That is, once a new version of Selenium is released, And I can get the newest version binding on ...
0
votes
0answers
37 views

Undefined Method when executing cucumber

I wrote a cucumber scenario with the following steps Scenario: Validate in orders list the order status "Order Creates" When I click on the orders button And the order "14103795" is visible Then I ...
1
vote
1answer
78 views

Expect case insensitive text on page - Capybara + RSpec [closed]

I am pretty newbie in Ruby and we are using Capybara + Rspec + Poltergeist as the driver. What I want to do is to expect some text on the webpage I am testing, so I have this simple code: ...
3
votes
2answers
5k views

Connection refused error when running selenium with chrome and firefox drivers

I am running selenium tests with firefox and chrome drivers. I get a connection refused error when I run the tests in as a block Test example : require 'minitest_helper' headless = Headless.new ...
2
votes
1answer
574 views

Selenium WebDriver sometimes fails to connect to the browser when running tests in headless mode

I'm experiencing timeouts when Webdriver connects to the Chrome browser in headless acceptance tests setup on Linux. I'm using the following setup to run the tests: Vagrant machine with Ubuntu ...
2
votes
2answers
744 views

How to execute Ruby Selenium Web Driver tests using Jenkins?

I have written quite a few Ruby programs for my clients test automation project.But the problem is my client wants to check the output to his PC without instilling ruby.He is asking me to make one web ...
0
votes
1answer
199 views

Get browser's current position using selenium webdriver

I would like to know if there's any way to know the absolute position of the browser's visible canvas. Ex: if I'm at a webpage and I scroll down 200px, I would like to know I'm on the coordinate ...
3
votes
2answers
702 views

Getting response headers with Selenium Webdriver / Chromedriver

I have a cucumber project in Ruby using Selenium Webdriver and Chromedriver and I would like to know if a page I access is up or in maintenance. To do this, I would like to access the response-headers ...
0
votes
1answer
187 views

When to launch application server during a cucumber test

I am currently setting a testing environment and I want to for now run my automated tests locally (I'll run then on a CI server in the near future). I have written a script which goes into the ...
1
vote
1answer
318 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 ...
2
votes
1answer
165 views

Appium (iOS) how to choose two UITableCells with the same name

I am using Appium and Cucumber with Ruby to carry out some UI tests on our application. I want to use the code below to select a button, with the same name but found in two different cells, for ...
4
votes
1answer
136 views

Unwanted new tab opens every time I click on a link (which is not expected) [closed]

I have an issue with my automation (selenium-webdriver). Every time I click on a link, that link would open in a new tab ‒ this is not expected, and links do not have _blank attr. set to them. My ...
0
votes
1answer
158 views

Running script at the end of cucumber test

I have a script I need to run after all my cucumber test. What's the best way to do this? It seems like the After hook only applies to scenarios.
0
votes
1answer
887 views

How to use modify_headers extension for Firefox via Webdriver?

I'm trying to use modify_headers extension (because this feature will never be added to Webdriver) but without success. I use the following code: @profile = Selenium::WebDriver::Firefox::Profile.new ...
0
votes
1answer
143 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
508 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 ...
1
vote
1answer
953 views

Using Ruby Selenium WebDriver how to check URL or Navigation which return 404?

What is the most convenient way of using Ruby script for Selenium WebDriver to check all url's (from navigation menu)of any web page.Actually want to run them to see where they go. For example: ...
1
vote
2answers
415 views

Test Automation Using Ruby Selenium Web Driver

I have written quite a few Ruby programs for my clients test automation project.But the problem is my client wants to check the output to his PC without instilling ruby.He is asking me to make one web ...
2
votes
2answers
6k views

Getting Started Web service and RestFul API Testing with CUCUMBER - Looking for tutorials

I am looking to get started building a project and want to use CUCUMBER from day one. My Ruby background is Intermediate; however, I do have a good understanding of MVC and the structure within Ruby. ...
4
votes
1answer
300 views

Selenium tests aren´t launched anymore

I used to be able to launch all my Selenium2 WebDriver tests in Ruby on Rails via rake test:units. But recently, my test case(s) won't be found anymore. I dont get any notification or error message. ...
1
vote
1answer
229 views

Loading test data from MySQL database

I use Ruby with Selenium to do test automation on a web application that has a MySQL DB behind it. I need a good way to load data into the DB from a Ruby script. So far in my research I have found ...