def test01_002_FirstLaunch(self):
     '''
     :Test Cases:
     - Check if App Starts with Address Bar.
     - Check if URL Bar exists.
     - Check if Address Bar does not exist.
     - Check that Keyboard is already Minimized.
     - Check if Address Bar exists.
     :return:
     '''
     self.log("Check 'First Launch'.", "testsuite")
     PFT = FreshTab(self.settings)
     Onboarding(self.settings).startBrowsing()
     self.assertNotEqual(PFT.getAddressBar(),
                         None,
                         "Check if App Starts with Address Bar.",
                         noException=True)
     PFT.disableAddressBar()
     self.assertIsEqual(PFT.getAddressBar(), None,
                        "Check if Address Bar does not exist.")
     urlBar = PFT.getURLBar()
     self.assertNotEqual(urlBar, None, "Check if URL Bar exists.")
     self.assertIsEqual(self.minimizeKeyboard(),
                        False,
                        "Check that Keyboard is already Minimized.",
                        noException=True)
     urlBar.click()
     self.assertNotEqual(PFT.getAddressBar(), None,
                         "Check if Address Bar exists.")
 def test01_004_TabsOverview(self):
     '''
     :Test Cases:
     - Check if only 1 Tab exists in the list.
     - Check Address Bar is not present.
     - Check Tabs Panel Element is present.
     - Check Tabs Panel has a Header Bar.
     - Check Tabs Panel Header Bar has a Tabs Button.
     - Check Tabs Panel Header Bar has a Private Button.
     - Check Tabs Panel Header Bar has a Add Tab Button.
     - Check Tabs Panel Header Bar has a Menu Button.
     - Check if the tabs count is as per the number of tabs.
     - Check if Private Tabs List is Empty.
     - Check if FreshTab is opened after removing all tabs.
     :return:
     '''
     self.log("Check 'Tabs Overview'.", "testsuite")
     PFT = FreshTab(self.settings)
     tabsCount = PFT.getTabsCount()
     self.assertIsEqual(tabsCount,
                        1,
                        "Check if only 1 Tab exists in the list.",
                        skipIf="ios",
                        skipMessage="Tabs Counter is not present for iOS.")
     PFT.openTabsOverview()
     PTO = TabsOverview(self.settings)
     self.assertIsEqual(PFT.getAddressBar(), None,
                        "Check Address Bar is not present.")
     tabsPanel = PTO.getTabsPanel()
     self.assertNotEqual(tabsPanel, None,
                         "Check Tabs Panel Element is present.")
     tabsPanelHeaderBar = PTO.getHeaderBar(tabsPanel)
     self.assertNotEqual(tabsPanelHeaderBar, None,
                         "Check Tabs Panel has a Header Bar.")
     self.assertNotEqual(PTO.getTabsButton(tabsPanelHeaderBar),
                         None,
                         "Check Tabs Panel Header Bar has a Tabs Button.",
                         skipIf="ios",
                         skipMessage="No Back Button for iOS.")
     self.assertNotEqual(PTO.getNavNormalTabsButton(),
                         None,
                         "Check Tabs Panel Header Bar has a Tabs Button.",
                         skipIf="ios",
                         skipMessage="No Tabs Button for iOS.")
     self.assertNotEqual(
         PTO.getNavPrivateTabsButton(), None,
         "Check Tabs Panel Header Bar has a Private Button.")
     self.assertNotEqual(
         PTO.getNavAddTabButton(tabsPanelHeaderBar),
         None,
         "Check Tabs Panel Header Bar has a Add Tab Button.",
         noException=True)
     self.assertNotEqual(PTO.getNavTabsMenuButton(tabsPanelHeaderBar),
                         None,
                         "Check Tabs Panel Header Bar has a Menu Button.",
                         skipIf="ios",
                         skipMessage="No Menu Button for iOS.")
     self.assertIsEqual(
         len(PTO.getTabsList(tabsPanel)),
         tabsCount,
         "Check if the tabs count is as per the number of tabs.",
         skipIf="ios",
         skipMessage="Tabs Counter is not present for iOS.")
     self.assertIsEqual(PTO.isPrivateTabsEmpty(tabsPanel),
                        True,
                        "Check if Private Tabs List is Empty.",
                        noException=True)
     PTO.closeAllTabs()
     self.assertIsEqual(
         PFT.disableAddressBar().text, "Search or enter address",
         "Check if FreshTab is opened after removing all tabs.")