Example #1
0
 def test_linkedIn(self):
     # Verify that the google+ icon in the footer opens the correct page
     # linked in is opening a sign in page instead of the caktus linked in page for the automation browser
     Footer(self.driver).linkedin()
     # switch to the new tab by finding the second window handle
     TestUtils(self.driver).switch_new_tab()
     assert self.driver.title == PageTitles.linkedIn_title
Example #2
0
 def test_events_dropdown(self):
     # Verify that first event card matches the 'year' selected from the drop down
     year = "2017"
     # select an option from the drop down on events page
     Footer(self.driver).quick_links_events()
     Events(self.driver).event_dropdown_select_year(year)
     # verify the year in the date field
     event_date = self.driver.find_element(
         *EventsLocators.date_on_card).text
     self.assertIn(year, event_date)
Example #3
0
 def test_facebook(self):
     # Verify that the facebook icon in the footer opens the correct page
     Footer(self.driver).facebook()
     # switch to the new tab by finding the second window handle
     TestUtils(self.driver).switch_new_tab()
     assert self.driver.current_url == PageTitles.facebook_url
Example #4
0
 def test_google_plus(self):
     # Verify that the google+ icon in the footer opens the correct page
     Footer(self.driver).google_plus()
     TestUtils(self.driver).switch_new_tab()
     assert self.driver.current_url == PageTitles.google_plus_url
Example #5
0
 def test_privacy_policy(self):
     Footer(self.driver).privacy_policy()
     assert self.driver.title == PageTitles.privacy_policy
Example #6
0
 def test_twitter(self):
     # Verify that the twitter icon in the footer opens the correct page
     Footer(self.driver).twitter()
     # switch to the new tab by finding the second window handle
     TestUtils(self.driver).switch_new_tab()
     assert self.driver.title == PageTitles.twitter
Example #7
0
 def test_quick_links_contact(self):
     # Verify that press link in footer loads correct page
     Footer(self.driver).quick_links_contact()
     assert self.driver.title == PageTitles.contact
Example #8
0
 def test_quick_links_talks(self):
     # Verify that talks link in footer loads correct page
     Footer(self.driver).quick_links_talks()
     assert self.driver.title == PageTitles.talks
Example #9
0
 def test_quick_links_blog(self):
     # Verify that blog link in footer loads correct page
     Footer(self.driver).quick_links_blog()
     assert self.driver.title == PageTitles.blog
Example #10
0
 def test_quick_links_about_us(self):
     # Verify that about us link in footer loads correct page
     Footer(self.driver).quick_links_about_us()
     assert self.driver.title == PageTitles.about_us
Example #11
0
 def test_quick_links_our_work(self):
     # Verify that our work link in footer loads correct page
     Footer(self.driver).quick_links_our_work()
     assert self.driver.title == PageTitles.casestudies