class CUKES::Google_HomePage
Public Instance Methods
click_bet365()
click to toggle source
Description : clicks the Bet365.com link from the search result Author : Chandra sekaran
# File lib/friendly/cukes/framework/page_objects/desktop/google_search.rb, line 44 def click_bet365 wait_for_object(link_bet365_element, "Could not find 'bet365.com' link") click_on(link_bet365_element) $log.success("Bet365.com link clicked successfully") rescue Exception => ex $log.error("Failure in clicking the link for Bet365.com : #{ex}") exit end
initialize_page()
click to toggle source
Description : invoked when the page class object is created Author : Chandra sekaran
# File lib/friendly/cukes/framework/page_objects/desktop/google_search.rb, line 20 def initialize_page wait_for_page_load has_expected_title? end
search_for_text(str_search_text)
click to toggle source
Description : searches for the given input string Author : Chandra sekaran Argument :
str_search_text : search text
# File lib/friendly/cukes/framework/page_objects/desktop/google_search.rb, line 30 def search_for_text(str_search_text) wait_for_object(textfield_search_element, "Could not find 'search textbox'") self.textfield_search = str_search_text wait_for_object(textfield_search_element, "Could not find 'search button'") click_on(button_search_element) $log.success("Search completed successfully for string '#{str_search_text}'") rescue Exception => ex $log.error("Failure while searching for string '#{str_search_text}' : #{ex}") exit end