lib/page.rb in gridium-1.1.4 vs lib/page.rb in gridium-1.1.6
- old
+ new
@@ -12,11 +12,11 @@
def self.assert_selector(by, locator)
asserted_element = Element.new("Asserted Element", by, locator)
if asserted_element.eql? nil
fail("Could not find element on page with locator #{locator} using #{by}")
else
- Log.info("Asserted Element present with locator #{locator} using #{by}")
+ Log.info("[GRIDIUM::Page] Asserted Element present with locator #{locator} using #{by}")
end
end
def self.has_css?(css, options={})
wait = Selenium::WebDriver::Wait.new(:timeout => 5)
@@ -56,10 +56,10 @@
wait = Selenium::WebDriver::Wait.new(:timeout => 5) #5 seconds every 500ms
begin
element = wait.until {Driver.html.include? text}
rescue Exception => exception
Log.debug("[GRIDIUM::Page] has_flash? exception was rescued: #{exception}")
- Log.warn("Could not find the flash message!")
+ Log.warn("[GRIDIUM::Page] Could not find the flash message!")
end
if element
return true
else