def test_feature_well_plays_carousel(self): homePage = HomePageSS(self.driver, self.wait) activeSlide1 = homePage.getFeatureWellSlides()[0].get_attribute("class") inactiveSlide1 = homePage.getFeatureWellSlides()[1].get_attribute("class") time.sleep(9) #wait for carousel to switch slides inactiveSlide2 = homePage.getFeatureWellSlides()[0].get_attribute("class") activeSlide2 = homePage.getFeatureWellSlides()[1].get_attribute("class") self.assertEqual(activeSlide1, activeSlide2, "Slide not switched") self.assertEqual(inactiveSlide1, inactiveSlide2, "Slide not switched")
def test_featureWellDisplaysCorrectly(self): homePage = HomePageSS(self.driver, self.wait) self.assertTrue(homePage.getFeatureWellTitle()!=None, "Feature well not present") self.assertTrue(len(homePage.getFeatureWellSlides()) > 0, "Feature well contains no slides")