cancel
Showing results for 
Search instead for 
Did you mean: 

Apostrophe in XPath

SOLVED
Highlighted
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

@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

so you tried this?

 

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

Highlighted
Community Manager

@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

Get properties of a web page element

See replies!

Compare images using the Region Checkpoint

See replies!

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

Participate!

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

Participate!
Top Kudoed Authors