Can not set path to a hidden file_Field with Watir

I'm using Ruby and Watir to test UI. I encounted an issue and didn't figure out how to solve it yet. I have a file field element that has style: 'display: none' and when i try to set a path to a file it returns me a "File Not Found message". The sam...
more »

2017-09-05 09:09 (1) Answers

How to programmatically click google maps icons

Take a look at this map: This map pops up when you visit https://www.hertzcarsales.com/, and click "Change" next to with "Within X miles of Y" dropdown selector. Anyway, I cannot right click on the little H's to inspect with FireBug, and I can't s...
more »

2016-10-02 03:10 (1) Answers

Watir Timeout issue with Firefox

I am attempting to run the following ruby code via RubyMine: require 'rubygems' require 'watir-webdriver' browser = Watir::Browser.new :firefox browser.goto 'http://www.apple.com' When I run I get the following error: firefox connection in 60 seco...
more »

2016-09-22 22:09 (1) Answers

Watir how to click on nested element

I'm trying to click on "Mr" from the drop down list I've tried a combination of things but non of them seem to work. I've even tried xpath which is usually reliable but for this case its failing. $browser.element(:xpath, "/html/body/div[1]/div[1]...
more »

2016-06-10 12:06 (2) Answers