java.lang.AssertionError: expected [true]

else if (getText((By.xpath(“.//*[@id=’blogFavourites’]/tr[” + i + “]/td[1]//a”))).equalsIgnoreCase(blogName) &&
getText(By.xpath(“.//*[@id=’blogFavourites’]/tr[” + i + “]/td[2]//a[contains(@class, ‘usercardLink’)]”)).equalsIgnoreCase(author))
{
timeInterval();
click(By.xpath(“.//*[@id=’blogFavourites’]/tr[” + i + “]/td[4]//a[@data-original-title=’More actions’]”));
timeInterval(1);
return isDisplayed(By.xpath(“.//*[contains(@class,’open’)]//a[text()=’Delete’]”)) &&
isDisplayed(By.xpath(“.//*[contains(@class,’open’)]//a[text()=’Copy’]”)) &&
isDisplayed(By.xpath(“.//*[contains(@class,’open’)]//a[text()=’Share’]”)) && isDisplayed(By.xpath(“.//*[contains(@class,’open’)]//a[text()=’Edit’]”));
}

Train Asked on December 13, 2016 in Program QA Automation.
Add Comment
  • 0 Answer(s)
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.