Reputation: 19
The web site that I am testing enables the user to choose a language. And if the language is switched from English to some else language, all the label names of the drop down menus are now different.
So i work around this by always switching to English in the beginning of the test, this way:
open | /&UIlanguage=EN
but I do not like this workaround because i don't find it sophisticated enough and it feels like cheating.
I am new to Selenium IDE and im sure there are better ways.
With XPATH i use "OR" expressions, but can i use OR expressions when not using XPATH?
For example
type | id=orderbillingcity | label=Ruse <> label=Русе
how can i do that?
Upvotes: 1
Views: 1528
Reputation: 81
You can use "XPATH" or "CSS" or "ID" locator to perform localization checks. languages or text does not make any impact on these locators. this will always remains same.
but if we use "LINK" or "NAME" locator then it will always change according to your language. so do not use "link" or "name" locator to perform localization checks.
Hope this will help you.
Upvotes: 2