>From the example implementation in 
https://github.com/watir/watir-webdriver/wiki/Page-Objects, the following 
is a class definition on UserPage

class UserPage < BrowserContainer
  def logged_in?
    logged_in_element.exists?
  end

  def loaded?
    @browser.title == "Your Profile"
  end

  private

  def logged_in_element
    @browser.div(:id => "logged-in")
  endend # UserPage

I don't see exists? in 'logged_in_element.exists?' defined anywhere. Can 
someone enlighten me?

Thanks. 


-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to