I need to take value from row from page
my code is
String bname1 = selenium.getText("//table[@id='bank']/tbody/tr[3]/td[2]");
assertEquals(bname1,"HDFC");
if(bname1=="HDFC") {
System.out.println("Bank name is:"+bname1);
} else {
System.out.println("Bank name not found");
}
System.out.println(bname1);
Result: Bank name not found HDFC
My bank name is "VIJAYA" But when i compare to "bname1" and "VIJAYA",RESULT will be negative? How can i compaire these strings pls help me...