lib/page.rb in gridium-1.1.15 vs lib/page.rb in gridium-1.1.17
- old
+ new
@@ -56,10 +56,10 @@
def self.has_flash?(text, opts = {})
timeout = opts[:timeout] || 5
wait = Selenium::WebDriver::Wait.new(:timeout => timeout)
begin
if opts[:visible]
- element = wait.until { Element.new("Finding text '#{text}'", :xpath, "//*[text()='#{text}']").displayed? }
+ element = wait.until { Element.new("Finding text '#{text}'", :xpath, "//*[text()=\"#{text}\"]").displayed? }
else
element = wait.until { Driver.html.include? text }
end
rescue Exception => exception
Log.debug("[GRIDIUM::Page] exception was rescued: #{exception}")