I have a test where I am clicking on a spantag that is identified by an "innertext" attribute.
In the Spy and in the repository, the Xpath looks like this:
.//span[@innertext='Vásárlás']
In my data file, which supplies the innertext for which the test should check I see this:
Vásárlás
I see this when I cut and paste the tag into the text editor in Ranorex studio:
.//span[@innertext='Vásárlás']
I see this in the report after the test fails:
No element found for path '<extra path info deleted here>/.//span[@innertext='V�s�rl�s']' within 10s.
How do I get Ranorex to recognize the special characters when it runs the test? The Spy sees it fine, and the repository has it correct as well. The data file is correct. Even the text editor can see it.
Thanks,
Lisa
Reading special characters from a data file
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Reading special characters from a data file
Hi,
please make sure to save your data file in UTF-8 encoding.
Then it should work as expected.
Regards,
Tobias
Ranorex Team
please make sure to save your data file in UTF-8 encoding.
Then it should work as expected.
Regards,
Tobias
Ranorex Team