I’m using selenium RC from past 3 months . I’m using Internet explorer why because my application works only in IE. everything is going fine but the problem is i’m not able to verify text even though text is present in the page. i’m using following code to verify text.
if(s.isTextPresent("Opportunities"))
{
System.out.println("continue");
}
else
{
System.out.println("error");
}
above text is present in the application but still it is printing error
<td>
<td>
<th title="Sort by Owner" class="ms-crm-List-Sortable" entityname="opportunity" >
<nobr>
...Text - Owner
..<img class="ms-crm-List-Sortable" alt="" src="http://dmgt-t complete="complete"/>
<td>
<th title="Sort by Topic" class="ms-crm-List-Sortable" entityname="opportunity" >
<td>
HTML format of my page is like above.. i need to verify the text ‘Owner’
i’m unable to verify using the statement
if(selenium.isTextPresent(“Owner”))
if condition is giving false but text is present in the page
Le use get.text(locator) and verify using if(==). locator could be either xpath,csspath or any id or name of element
xpath=//th[@title=’Sort by Owner’]