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.
Is Internationalization testing possible with Sahi
Hi,
Suppose I have script recorded in English locale.
Is there any provision in SAHI to run the same script in other locale like Japanese, Chinese.
Thanks,
SamsirSameer
Suppose I have script recorded in English locale.
Is there any provision in SAHI to run the same script in other locale like Japanese, Chinese.
Thanks,
SamsirSameer
Comments
Scenario:
1. Script is created in English locale.
2. Application locale is changed from English to Japanese
3. Now run the Script (recorded for application which was in English locale) on the Application which is on Japanese locale.
Is this possible with Sahi???
Thanks,
Samsirsameer.
Write your scripts based on ids and attributes not dependent on locale.
or
Externalize the script itself so that all locale specific strings in the scripts are picked from a file based on locale.
I would recommend the first option. Email me if you need a way to ignore locale specific information while recording.
Regards,
Narayan
According to the Sahi API documentation, _setSelected does not take an attribute value to select an option, only the option text which is locale dependant. I'm new to sahi, any solution for this?
You can use the text, id or index of the option.
Updated documentation. Thanks for pointing out.
Regards,
Narayan
I just verified that it works. Have a look at http://sahi.co.in/demo/selectTest.htm.
When I chose the second option it recorded as id2 is the id of the second option.
May be there is something different happening in your case. Can you paste the HTML code for the option? (Paste it within \[code\] \[/code\] tags).
Regards,
Narayan