mardi 8 novembre 2016

driver.getPageSource().contains(PriceRange)) with xpath element not working in if else condition

driver.getPageSource().contains(**PriceRange**)) with Xpath element not working in if else condition? Below is my if else condition. I am trying to do but always go in else condition.

    if (driver.getPageSource().contains(PriceRange)){
        System.out.println("Price range present at catalog page.");
        } else {
        System.out.println("---------------ERROR:- Price range not present at catalog page.");
    }

Aucun commentaire:

Enregistrer un commentaire