How do I avoid duplicate key warnings in Ruby 2.2 with Watir? -


using watir-webdriver selenium have element selectors duplicate key warnings like

browser.div(class: 'one-possible-class', class: 'another-possible-class')

this works resolve elements match either 1 or both of given classes. problem newer versions of ruby (2.2 , up) throw warnings when different values passed in using same key.

warning: duplicated key @ line 16 ignored: :class

so tried using regex

browser.div(class: /one-possible-class|another-possible-class/)

however, did not work same.


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -