class Test_productDetails(unittest.TestCase):
    @pytest.fixture(autouse=True)
    def classSetup(self, oneTimeSetUp):
        self.hp = HomePage(self.driver)
        self.mlp = MobilesAccessoriesListingPage(self.driver)
        self.rlp = RedmiListingPage(self.driver)

    @pytest.mark.run(order=1)
    def test_goToPDP(self):
        self.hp.goToMobilePhones()
        self.mlp.goToRedmiY2()
        print("Total: ", self.rlp.totalResultExpected())
        self.rlp.resultActual()
class Test_productListing(unittest.TestCase):

    @pytest.fixture(autouse=True)
    def classSetup(self, oneTimeSetUp):
        self.hp = HomePage(self.driver)
        self.mlp = MobilesAccessoriesListingPage(self.driver)

    @pytest.mark.run(order=1)
    def test_goToPDP(self):
        self.hp.goToMobilePhones()
        self.mlp.filterByBrand()
        expected = self.mlp.getTotalResultText()
        actual = self.mlp.getTotalResult()
        print(expected,actual)
class Test_productDetails(unittest.TestCase):

    @pytest.fixture(autouse=True)
    def classSetup(self, oneTimeSetUp):
        self.hp = HomePage(self.driver)
        self.mlp = MobilesAccessoriesListingPage(self.driver)
        self.rlp = RedmiListingPage(self.driver)

    @pytest.mark.run(order=1)
    def test_goToPDP(self):
        self.hp.goToMobilePhones()
        self.mlp.goToRedmiY2()
        self.rlp.filterByOSColor()
        self.rlp.navigateToMultipage()