18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
French Language have accents : _getText dont like this
hi all (second time today...)
I've a new problem, i must to check a title .... a french title "Gaz de schiste - Wikipédia"
i try two ways without _getText and With _getText : two errors (on the "é" definitely)
=> _assertContainsText ("Gaz de schiste - Wikipédia", _table("", _under(_div("Document list"))), "ERRMSG");
ERROR
=> _assertContainsText ("Gaz de schiste - Wikipédia", _getText(_table("", _under(_div("Document list")))), "ERRMSG");
ERROR
[list=*]
[*]Why two differents errors : _getText ? [/*]
[*]How to resolve encoding é = \uFFFD of _getText ? [/*]
[/list]
Thx
Regards
Fabrice B
I've a new problem, i must to check a title .... a french title "Gaz de schiste - Wikipédia"
i try two ways without _getText and With _getText : two errors (on the "é" definitely)
=> _assertContainsText ("Gaz de schiste - Wikipédia", _table("", _under(_div("Document list"))), "ERRMSG");
ERROR
_assertContainsText ("Gaz de schiste - Wikip�dia", _table("", _under(_div("Document list"))), "ERRMSG");
Assertion Failed. ERRMSG
Expected:[Gaz de schiste - Wikip�dia] to be part of [Results: 1-2/2Gaz de schiste - WikipédiaLe gaz de schiste , également appelé « gaz de roche-mère » [...]
=> _assertContainsText ("Gaz de schiste - Wikipédia", _getText(_table("", _under(_div("Document list")))), "ERRMSG");
ERROR
_assertContainsText ("Gaz de schiste - Wikip�dia", _getText(_table("", _under(_div("Document list")))), "ERRMSG");
TypeError: orig is undefined
http://kimv2qualite/_s_/spr/concat.js:1679
("Results: 1-2/2Gaz de schiste - Wikip\xE9diaLe gaz de schiste , \xE9galement appel\xE9 \xAB gaz de roche-m\xE8re \xBB, [...]
[list=*]
[*]Why two differents errors : _getText ? [/*]
[*]How to resolve encoding é = \uFFFD of _getText ? [/*]
[/list]
Thx
Regards
Fabrice B
This discussion has been closed.
Comments
Improving of sahi - set browser language
Pleases check this topic.
I'm sorry, i try solutions of the topic
but i still have my errors.
I ve made a more simple test, now i try this
_assertContainsText ("Énergie nucléaire - Wikipédia", _div("gwt-HTML[50]"), "ERRMSG");
ERROR
We can see that it's my string is not understood, Sahi made his verifications on a good text
=> to be part of [Énergie nucléaire - Wikipédia],
but sahi dont understand my demand
=> "Énergie nucléaire - Wikipédia" becomes "�nergie nucl�aire - Wikip�dia"
how can i resolve this encoding problem
Thank you by advance
Fabrice B
The default encoding is utf8 and its been added in the latest version of Sahi which was released on 2011-07-19.
Kindly check if it works on the above mentioned version of Sahi.
Regards
Sumitra
I'm a idiot !!! so sorry !! the problem is really more simple ....
my .sah has been saved in ANSI ( i dont know how but it was) and with a save in Utf-8 it's works fine ... Normal
I see http://sahi.co.in/forums/viewtopic.php?id=1952 too late...
So sorry again for the losing of your time
Thank You Mohan
Regards
Fabrice B