How do i compare a website result with a predicted result.
@\"document.getElementsByTagName(\'body\')[0].outerHTML\"
is predicted to contai
if (webresult == cmp)
Here, == checks whether webresult, cmp are pointing to the same reference or not. You should instead compare value of the object by using NSString::isEqualToString.
if ( [ cmp isEqualToString:webresult ]) {
// ..
}else {
// ..
}
Note that isEqualToString is a good option because it returns boolean value.