def test_top_picks_editors_choice_blocks(self, driver):
        # Top picks block swipe
        assert Actions.getTextID(
            self, driver, MainLocators.TOP_PICKS_TITLE_ID) == 'Top Picks'
        assert Actions.getFewTextsXP(
            self, driver, MainLocators.OVERALL_TABS_XP) == ['Games', 'Apps']
        # assert Actions.getAttributeValueXP(self, driver, MainLocators.FIRST_TAB_XP, 'selected') == 'true'
        # assert Actions.getAttributeValueXP(self, driver, MainLocators.SECOND_TAB_XP, 'selected') == 'false'
        assert Actions.count_of_elements_id(self, driver,
                                            MainLocators.APP_ICON_ID) == 7
        assert Actions.count_of_elements_id(self, driver,
                                            MainLocators.SUBTITLE_APP_ID) == 7

        Actions.swipeSectionsToLeft(self, driver)

        assert Actions.count_of_elements_id(self, driver,
                                            MainLocators.APP_ICON_ID) == 4
        assert Actions.count_of_elements_id(self, driver,
                                            MainLocators.SUBTITLE_APP_ID) >= 4

        Actions.swipeSectionsToRight(self, driver)

        assert Actions.count_of_elements_id(self, driver,
                                            MainLocators.APP_ICON_ID) == 7
        assert Actions.count_of_elements_id(self, driver,
                                            MainLocators.SUBTITLE_APP_ID) == 7

        # Top picks block click
        Actions.clickButtonXP(self, driver, MainLocators.SECOND_TAB_XP)

        assert Actions.count_of_elements_id(self, driver,
                                            MainLocators.APP_ICON_ID) == 4
        assert Actions.count_of_elements_id(self, driver,
                                            MainLocators.SUBTITLE_APP_ID) >= 4

        Actions.clickButtonXP(self, driver, MainLocators.FIRST_TAB_XP)

        assert Actions.count_of_elements_id(self, driver,
                                            MainLocators.APP_ICON_ID) == 7
        assert Actions.count_of_elements_id(self, driver,
                                            MainLocators.SUBTITLE_APP_ID) == 7

        # Test open app page from top picks block
        assert Actions.isObjectExistsID(
            self, driver, AppPageLocators.GALLERY_BLOCK_ID) is False

        Actions.clickButtonXP(self, driver,
                              MainLocators.APP_TO_OPEN_TOP_PICKS_XP)

        assert Actions.isObjectExistsID(
            self, driver, AppPageLocators.GALLERY_BLOCK_ID) is True

        Actions.clickButtonID(self, driver, AppPageLocators.BACK_BUTTON_ID)

        assert Actions.isObjectExistsID(
            self, driver, AppPageLocators.GALLERY_BLOCK_ID) is False

        Actions.scrollPageToUp(self, driver)

        # Editor's choice block swipe
        assert Actions.getFewTextsXP(self, driver,
                                     MainLocators.OVERALL_TABS_XP) == [
                                         'Games', 'Apps', 'Games', 'Apps'
                                     ]

        assert Actions.count_of_elements_id(self, driver,
                                            MainLocators.APP_ICON_ID) == 13

        Actions.swipeSectionsToLeft(self, driver)

        assert Actions.count_of_elements_id(self, driver,
                                            MainLocators.APP_ICON_ID) == 10

        Actions.swipeSectionsToRight(self, driver)

        assert Actions.count_of_elements_id(self, driver,
                                            MainLocators.APP_ICON_ID) == 13

        # Editor's choice block click
        Actions.clickButtonXP(self, driver, MainLocators.FOURTH_TAB_XP)

        assert Actions.count_of_elements_id(self, driver,
                                            MainLocators.APP_ICON_ID) == 10

        Actions.clickButtonXP(self, driver, MainLocators.THIRD_TAB_XP)

        assert Actions.count_of_elements_id(self, driver,
                                            MainLocators.APP_ICON_ID) == 13

        # Test open app page from editors choice  block
        assert Actions.isObjectExistsID(
            self, driver, AppPageLocators.GALLERY_BLOCK_ID) is False

        Actions.clickButtonXP(self, driver,
                              MainLocators.APP_TO_OPEN_EDITORS_CHOICE_XP)

        assert Actions.isObjectExistsID(
            self, driver, AppPageLocators.GALLERY_BLOCK_ID) is True

        Actions.clickButtonID(self, driver, AppPageLocators.BACK_BUTTON_ID)

        assert Actions.isObjectExistsID(
            self, driver, AppPageLocators.GALLERY_BLOCK_ID) is False