def test_navigating_between_products_slide(self):
        try:

            homepage = HomePage(Browser._driver)
            selected_slide = homepage.click_on_second_slide()
            self.assertTrue(homepage.verify_slide_is_active(selected_slide), "Second Slide is not active")

            BasicActions.implicit_wait(20)
            selected_slide = homepage.click_on_third_slide()
            self.assertTrue(homepage.verify_slide_is_active(selected_slide), "Third Slide is not active")

            BasicActions.implicit_wait(30)
            selected_slide = homepage.click_on_first_slide()
            BasicActions.implicit_wait(5)
            self.assertTrue(homepage.verify_slide_is_active(selected_slide), "First Slide is not active")

        except:
            raise Exception("There is an issue in navigating between the slides")
 def test_shop_button_second_slide_click(self):
     homepage = HomePage(Browser._driver)
     selected_slide = homepage.click_on_second_slide()
     if homepage.verify_slide_is_active(selected_slide)== True:
         homepage.shop_button_second_slide_click()
         BasicActions.implicit_wait(40)
         # Switch to the newly opened window
         Browser._driver.switch_to.window(Browser._driver.window_handles[1])
         # Make sure the newly opened window is loaded in order to get the URL
         if homepage.wait_for_instgram_page_load():
             url_name = Browser._driver.current_url
             # Verify that the URL of the newly opened page is the URL of Olyve Instgram Social Link
             self.assertEqual(self.Homeresult[1][7], Browser._driver.current_url, "Error in asserting the Instgram link")
 def test_shop_button_third_slide_click(self):
     homepage = HomePage(Browser._driver)
     selected_slide = homepage.click_on_third_slide()
     if homepage.verify_slide_is_active(selected_slide) == True:
         self.assertTrue(homepage.shop_button_third_slide_click(), "By clicking on the Shop button of the third slide, the user was not navigated to Products")