I am trying to make Ruby Watir script to run on a new server.
I have a working script on the old server:
#!/bin/ruby
require 'rubygems'
require 'watir'
require 'date'
require 'headless'
require 'fileutils'
require 'uri'
require 'logger'
headless = Headless.new(autopick: true, reuse: false, destroy_at_exit: true).start
options = Selenium::WebDriver::Chrome::Options.new
options.add_preference(:download, prefs)
options.add_argument('--ignore-certificate-errors')
options.add_argument('--disable-popup-blocking')
options.add_argument('--disable-translate')
b = Watir::Browser.new(:chrome, options: options)
b.goto 'someurl.com'
b.div(:id => 'IFRAME1').iframe.body.div(:id => 'DIVID1').div(class: ['Test1', 'Test2']).link(:id => 'DIVID2').click #getting warning here
The warning I am getting is the following:
WARN Selenium [DEPRECATION] Selenium::WebDriver::Error::ElementNotVisibleError is deprecated. Use Selenium::WebDriver::Error::ElementNotInteractableError (ensure the driver supports W3C WebDriver specification) instead.
Current server versions:
headless (2.3.1, 2.2.0)
selenium-webdriver (3.4.4)
watir (6.6.3)
New server versions:
headless (2.3.1)
selenium-webdriver (3.142.3, 3.142.0)
watir (6.16.5)
I have a feeling that the issue is with version mismatch, but I cannot pinpoint it.
So far I was not able to find any solution.