I've been querying the Firefox version number by using 'about:support' as
the URL and accessing via
@b.td(:id, 'version-box').text
This stopped working with Watir 6.11.0. Reverting to Watir 6.10.3, solves
the issue.
*Versions:*
ruby 2.4.3p205 (2017-12-14 revision 61247) [x64-mingw32]
Watir 6.11.0, WebDriver 3.12.0, Firefox 62.0b9, GeckoDriver 0.21.0
Windows 7
*Relevant code:*
@b.goto 'about:support'
@b.tds.each do |td|
puts td.id.inspect.to_s # displays "version-box" amid the 'td' id's
end
@b.td(:id, 'version-box').wait_until { |el| el.present? } # fails here with
default of 30 secs.
firefox_version = @b.td(:id, 'version-box').text
*Output:*
driver=#<Selenium::WebDriver::Firefox::Marionette::Driver:0x4a4c2204
browser=:firefox>
#<struct Selenium::WebDriver::Dimension width=1296, height=974>
"application-box"
"version-box" # I'm here!!
"buildid-box"
<snip>
.
.
"intl-osprefs-systemlocales"
"intl-osprefs-regionalprefs"
C:/Ruby243-1-x64/lib/ruby/gems/2.4.0/gems/watir-6.11.0/lib/watir/wait.rb:49:in
`until':
timed out after 30 seconds, waiting for true condition on
#<Watir::TableDataCell: located: false; {:id=>"version-box",
:tag_name=>"td"}>
(Watir::Wait::TimeoutError)
Thank you,
Walt
--
--
Before posting, please read
https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
In short: search before you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]
---
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.