My attribute value if condition is not working correctly in Selenium. It is printing string value true to console, but the following if condition supposed to print SMS number checkbox is disabled. Printing else output
String value=customerSectionSMSNumber.getAttribute("readonly");
System.out.println("Value = "+ value);
if ( value == "true") {
System.out.println("SMS number checkbox is disabled");
}` else {
System.out.println(customerSectionSMSNumber.getAttribute("readonly"));
}