18 January 2026:


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.

Problem witch encoding deutch letters

BartBart Members
edited November -1 in Sahi - Open Source
Hello all
I`m trying to automate the german website
I recorded the assertion:
_assertEqual("Kühlen und Gefrieren Geschirrspüler Waschen und Trocknen Kochen und Backen Kaffeegenuss Bodenpflege Bügeln Frühstücken Schneiden & Hacken Kneten, Rühren & Mixen Schönheit und Wohlbefinden Sonderzubehör", _getText(_div("carouselCenter")), "Text not equal");

when i`m executing the script, in sahi controler i get:

_assertEqual("K�hlen und Gefrieren Geschirrsp�ler Waschen und Trocknen Kochen und Backen Kaffeegenuss Bodenpflege B�geln Fr�hst�cken Schneiden & Hacken Kneten, R�hren & Mixen Sch�nheit und Wohlbefinden Sonderzubeh�r", _getText(_div("carouselCenter")), "Text not equal");

When i`m recording other steps and i`m trying identify object by their name or trying to check if the text is present in element i have this same problem, test is not passing

What can i do to make sahi interprete deuche letters correctly ?

i`m using windows 7, firefox 14.0.1 and sahi V3.5

Comments

  • change the special characters for a Java source code.
    I use the page fileformat.info(search in the google)
    example:
    _assertEqual("Kühlen")
    _assertEqual("K\u00FChlen")
  • BartBart Members
    Thanks for your answer andj.s
    ewerything working now
Sign In or Register to comment.