Xpath error with class

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.

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">
		<td width="100%" class="grid">
			<!-- InstanceBeginEditable name="PageHeader" -->
			<!--************ uitmplbegin: tPH ************-->
			<!--****** begin:titles ******-->
			<table cellspacing="0" border="0" class="tPH">
				<!--****** begin:page title ******-->
					**<td class="pageTitle">Create Inquiry Tracking # 667</td>**
				<!--****** end:page title ******-->
			<!--****** end:titles ******-->
			<!--************ uitmplend: tPH ************-->
			<!-- InstanceEndEditable -->
		<td width="182" class="grid"><img src="?appId=gmpinquiry&flName=/uitmpl/en/img/pixel.gif" width="182" height="1" alt="" border="0" /></td>

Am I missing something? I cant see your html code. Can you take a screenshot of the HTML and paste it? That’s usually easiest.

@vdavuluri2 forgot triple-backticks.

@vdavuluri2 edit your post to see how I fixed it.

1 Like

Can you elaborate on what is happening? Are you getting an error? Is the test failing silently?

Thank You, All for your response.
It was small issue and I had to import the package for ConditionType. It is working fine now.