# -*- coding: utf-8 -*-

import pytest
from locators.locators_landing_page import LocLandind
# python -m pytest -v tests/tests_landing_page.py -s -l


@pytest.mark.usefixtures("driver_landing", "base", "click", "locate")
class TestLandingPage(object):
    """ Tests of landing page (page of icon, what appear after
        when user clicked of the name of icon).
        """

    def test_landing_page_icon(self, setup_landing, click, locate):
        """Tests locate of main element of icon page"""

        locate.locate_xpath(LocLandind.icon_category)
        locate.locate_xpath(LocLandind.icon_text)
        locate.locate_xpath(LocLandind.icon)
        locate.locate_xpath(LocLandind.download_button)
        locate.locate_text_part('Generate HTML')
        click.click_xpath(LocLandind.choose_PNG_size)
        locate.locate_xpath(LocLandind.icon_download_sizes)
        locate.locate_xpath(LocLandind.icon_download_format)
        locate.locate_text_part('Download multiple sizes')
        locate.locate_text_part('Browse by tags')

    def test_landing_page_tag(self, setup_landing, click, locate):
        """Tests tags in icon page"""
        locate.locate_text_part('Browse by tags')
        click.click_xpath(LocLandind.tag)
        locate.locate_text_part('Here we go with the icons related')
        import time
        time.sleep(5)
        locate.locate_xpath(LocLandind.icon_in_tag)

    def test_landing_page_category(self, setup_landing, click, locate):
        """Tests category button in icon page
        For example: 'Free Icons › Web Icons › Arrows'
        If user click 'Arrows' must opened page with arrows categoryicons
        """
        locate.locate_text_part('Browse by tags')
        click.click_xpath(LocLandind.icon_category)
        locate.locate_xpath(LocLandind.icons_result)

dcb07edc54b2df371b7ef0790a4c14abbaa8acfe
<mask token>


@pytest.mark.usefixtures('driver_landing', 'base', 'click', 'locate')
class TestLandingPage(object):
    <mask token>
    <mask token>
    <mask token>

    def test_landing_page_category(self, setup_landing, click, locate):
        """Tests category button in icon page
        For example: 'Free Icons › Web Icons › Arrows'
        If user click 'Arrows' must opened page with arrows categoryicons
        """
        locate.locate_text_part('Browse by tags')
        click.click_xpath(LocLandind.icon_category)
        locate.locate_xpath(LocLandind.icons_result)

<mask token>


@pytest.mark.usefixtures('driver_landing', 'base', 'click', 'locate')
class TestLandingPage(object):
    <mask token>

    def test_landing_page_icon(self, setup_landing, click, locate):
        """Tests locate of main element of icon page"""
        locate.locate_xpath(LocLandind.icon_category)
        locate.locate_xpath(LocLandind.icon_text)
        locate.locate_xpath(LocLandind.icon)
        locate.locate_xpath(LocLandind.download_button)
        locate.locate_text_part('Generate HTML')
        click.click_xpath(LocLandind.choose_PNG_size)
        locate.locate_xpath(LocLandind.icon_download_sizes)
        locate.locate_xpath(LocLandind.icon_download_format)
        locate.locate_text_part('Download multiple sizes')
        locate.locate_text_part('Browse by tags')

    def test_landing_page_tag(self, setup_landing, click, locate):
        """Tests tags in icon page"""
        locate.locate_text_part('Browse by tags')
        click.click_xpath(LocLandind.tag)
        locate.locate_text_part('Here we go with the icons related')
        import time
        time.sleep(5)
        locate.locate_xpath(LocLandind.icon_in_tag)

    def test_landing_page_category(self, setup_landing, click, locate):
        """Tests category button in icon page
        For example: 'Free Icons › Web Icons › Arrows'
        If user click 'Arrows' must opened page with arrows categoryicons
        """
        locate.locate_text_part('Browse by tags')
        click.click_xpath(LocLandind.icon_category)
        locate.locate_xpath(LocLandind.icons_result)

<mask token>


@pytest.mark.usefixtures('driver_landing', 'base', 'click', 'locate')
class TestLandingPage(object):
    """ Tests of landing page (page of icon, what appear after
        when user clicked of the name of icon).
        """

    def test_landing_page_icon(self, setup_landing, click, locate):
        """Tests locate of main element of icon page"""
        locate.locate_xpath(LocLandind.icon_category)
        locate.locate_xpath(LocLandind.icon_text)
        locate.locate_xpath(LocLandind.icon)
        locate.locate_xpath(LocLandind.download_button)
        locate.locate_text_part('Generate HTML')
        click.click_xpath(LocLandind.choose_PNG_size)
        locate.locate_xpath(LocLandind.icon_download_sizes)
        locate.locate_xpath(LocLandind.icon_download_format)
        locate.locate_text_part('Download multiple sizes')
        locate.locate_text_part('Browse by tags')

    def test_landing_page_tag(self, setup_landing, click, locate):
        """Tests tags in icon page"""
        locate.locate_text_part('Browse by tags')
        click.click_xpath(LocLandind.tag)
        locate.locate_text_part('Here we go with the icons related')
        import time
        time.sleep(5)
        locate.locate_xpath(LocLandind.icon_in_tag)

    def test_landing_page_category(self, setup_landing, click, locate):
        """Tests category button in icon page
        For example: 'Free Icons › Web Icons › Arrows'
        If user click 'Arrows' must opened page with arrows categoryicons
        """
        locate.locate_text_part('Browse by tags')
        click.click_xpath(LocLandind.icon_category)
        locate.locate_xpath(LocLandind.icons_result)

import pytest
from locators.locators_landing_page import LocLandind


@pytest.mark.usefixtures('driver_landing', 'base', 'click', 'locate')
class TestLandingPage(object):
    """ Tests of landing page (page of icon, what appear after
        when user clicked of the name of icon).
        """

    def test_landing_page_icon(self, setup_landing, click, locate):
        """Tests locate of main element of icon page"""
        locate.locate_xpath(LocLandind.icon_category)
        locate.locate_xpath(LocLandind.icon_text)
        locate.locate_xpath(LocLandind.icon)
        locate.locate_xpath(LocLandind.download_button)
        locate.locate_text_part('Generate HTML')
        click.click_xpath(LocLandind.choose_PNG_size)
        locate.locate_xpath(LocLandind.icon_download_sizes)
        locate.locate_xpath(LocLandind.icon_download_format)
        locate.locate_text_part('Download multiple sizes')
        locate.locate_text_part('Browse by tags')

    def test_landing_page_tag(self, setup_landing, click, locate):
        """Tests tags in icon page"""
        locate.locate_text_part('Browse by tags')
        click.click_xpath(LocLandind.tag)
        locate.locate_text_part('Here we go with the icons related')
        import time
        time.sleep(5)
        locate.locate_xpath(LocLandind.icon_in_tag)

    def test_landing_page_category(self, setup_landing, click, locate):
        """Tests category button in icon page
        For example: 'Free Icons › Web Icons › Arrows'
        If user click 'Arrows' must opened page with arrows categoryicons
        """
        locate.locate_text_part('Browse by tags')
        click.click_xpath(LocLandind.icon_category)
        locate.locate_xpath(LocLandind.icons_result)

# -*- coding: utf-8 -*-

import pytest
from locators.locators_landing_page import LocLandind
# python -m pytest -v tests/tests_landing_page.py -s -l


@pytest.mark.usefixtures("driver_landing", "base", "click", "locate")
class TestLandingPage(object):
    """ Tests of landing page (page of icon, what appear after
        when user clicked of the name of icon).
        """

    def test_landing_page_icon(self, setup_landing, click, locate):
        """Tests locate of main element of icon page"""

        locate.locate_xpath(LocLandind.icon_category)
        locate.locate_xpath(LocLandind.icon_text)
        locate.locate_xpath(LocLandind.icon)
        locate.locate_xpath(LocLandind.download_button)
        locate.locate_text_part('Generate HTML')
        click.click_xpath(LocLandind.choose_PNG_size)
        locate.locate_xpath(LocLandind.icon_download_sizes)
        locate.locate_xpath(LocLandind.icon_download_format)
        locate.locate_text_part('Download multiple sizes')
        locate.locate_text_part('Browse by tags')

    def test_landing_page_tag(self, setup_landing, click, locate):
        """Tests tags in icon page"""
        locate.locate_text_part('Browse by tags')
        click.click_xpath(LocLandind.tag)
        locate.locate_text_part('Here we go with the icons related')
        import time
        time.sleep(5)
        locate.locate_xpath(LocLandind.icon_in_tag)

    def test_landing_page_category(self, setup_landing, click, locate):
        """Tests category button in icon page
        For example: 'Free Icons › Web Icons › Arrows'
        If user click 'Arrows' must opened page with arrows categoryicons
        """
        locate.locate_text_part('Browse by tags')
        click.click_xpath(LocLandind.icon_category)
        locate.locate_xpath(LocLandind.icons_result)
