cancel
Showing results for 
Search instead for 
Did you mean: 

Apostrophe in XPath

SOLVED
Highlighted
Occasional Contributor

Apostrophe in XPath

Im using a "FindChildByXPath" where the expression have an apostrophe

 

object.FindChildByXPath("//div[text()='XY'Z']");

 

I tried the solution in previous forum - https://community.smartbear.com/t5/TestComplete-Functional-Web/Using-FindChildByXPath-with-apostroph...

 

Unfortunately that doesnt work. 

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Manager

Re: Apostrophe in XPath

@longchasen could you share your progress with us on this one? Have you tried what Marsha suggested?

 

If none of the suggestions helped, I assume it is time to ask support directly. Please post your results when you have any! Thank you.


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today

View solution in original post

2 REPLIES 2
Highlighted
Community Hero

Re: Apostrophe in XPath

so you tried this?

 

object.FindChildByXPath("//div[text()="XY'Z"]");

Highlighted
Community Manager

Re: Apostrophe in XPath

@longchasen could you share your progress with us on this one? Have you tried what Marsha suggested?

 

If none of the suggestions helped, I assume it is time to ask support directly. Please post your results when you have any! Thank you.


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!

Retrieve Data from a Web Page

Participate!
Top Kudoed Authors