Module: UserMenu

Instance Method Summary collapse

Instance Method Details

#initializeObject


2
3
4
# File 'common/UserMenu.rb', line 2

def initialize
  @user_nav_menu = {"selector" => :xpath, "values" => ".//*[@class='container user-nav']//*[@class='dropdown-toggle']"} 
end

#log_outObject


12
13
14
# File 'common/UserMenu.rb', line 12

def log_out
   
end

#select_revert_to_admin(user) ⇒ Object


6
7
8
9
10
# File 'common/UserMenu.rb', line 6

def select_revert_to_admin(user)
  $log.debug("Reverting back to #{user}")
  find('.dropdown-toggle', :text => "#{user}").hover
  click_link("Revert to Admin")
end