Hi,
I am trying to get the content with the below xpath. It was working earlier with the below code. Now it is not working. Can you please look at the below code and html content for your reference ?
I am trying get the text “Create Inquiry Tracking # 667” from web page.
CODE:
TestObject testObject = new TestObject().addProperty(“xpath”, ConditionType.EQUALS, “//td[@class=‘pageTitle’]”)
inquiryt1 = WebUI.getText(testObject)
HTML Code:
<table width="100%" cellspacing="0" border="0" class="wrap">
<tr>
<td width="100%" class="grid">
<!-- InstanceBeginEditable name="PageHeader" -->
<!--************ uitmplbegin: tPH ************-->
<!--****** begin:titles ******-->
<table cellspacing="0" border="0" class="tPH">
<!--****** begin:page title ******-->
<tr>
**<td class="pageTitle">Create Inquiry Tracking # 667</td>**
</tr>
<!--****** end:page title ******-->
</table>
<!--****** end:titles ******-->
<!--************ uitmplend: tPH ************-->
<!-- InstanceEndEditable -->
</td>
<td width="182" class="grid"><img src="?appId=gmpinquiry&flName=/uitmpl/en/img/pixel.gif" width="182" height="1" alt="" border="0" /></td>
</tr>
</table>