Twist creating a Generic Checkpoint Method

public void applyCheckpoint(String propname, String locator,String valueToVerify)
{

String locatorWithAttribute =locator+"@"+propname;

Assert.assertEquals(selenium.getAttribute(locatorWithAttribute), valueToVerify);


}

0 comments:

Post a Comment