driver1.get("https://some url");


     String b = driver1.findElement(By.className("supArticleContent")).getText();

WebDriver driver2 = new ChromeDriver();

     driver2.get("https://some other ur
     String a = driver1.findElement(By.className("supArticleContent")).getText();

System.out.println(“ content is”+a);
if (a.equals(b)) {
System.out.println(“ PASSED”);
}
else{
System.out.println(“TC FAILED”);
}



Source link https://sqa.stackexchange.com/questions/34998/i-have-a--tc-to---of--the--i-am--is

LEAVE A REPLY

Please enter your comment!
Please enter your name here