'''
Google.com testing example
'''

from seleniumbase import BaseCase
from google_objects import HomePage, ResultsPage


class GoogleTests(BaseCase):

    def test_google_dot_com(self):
        self.open('http://www.google.com')
        self.assert_element(HomePage.search_button)
        self.assert_element(HomePage.feeling_lucky_button)
        self.update_text(HomePage.search_box, "github\n")
        self.assert_text("github.com", ResultsPage.search_results)
        self.assert_element(ResultsPage.google_logo)
        self.click_link_text("Images")
        self.assert_element('img[alt="Image result for github"]')

'''
Google.com testing example
'''

from seleniumbase import BaseCase
from google_objects import HomePage, ResultsPage


class GoogleTests(BaseCase):

    def test_google_dot_com(self):
        self.open('http://www.google.com')
        self.assert_element(HomePage.search_button)
        self.assert_element(HomePage.feeling_lucky_button)
        self.update_text(HomePage.search_box, "github\n")
        self.assert_text("github.com", ResultsPage.search_results)
        self.click_link_text("Images")
        self.assert_element('img[alt="Image result for github"]')

Update Google boilerplate test. (Logo frequently changes)
Update Google boilerplate test. (Logo frequently changes)
