I'm automating an application with the Robot Framework (Python 2.7). I use the xpath to locate the objects. I have seen that the xpath of the objects is different when I change the language application. For example:
ES
// * [@ id = "dnn_ctr489_ViewINT_Cupones_ibtnAdd"]
FR
// * [@ id = "dnn_ctr644_ViewINT_Cupones_ibtnAdd"]
EN
// * [@ id = "dnn_ctr583_ViewINT_Cupones_ibtnAdd"]
This forces me to redo the Test Case because the xpath is different.
Is it possible to use a regular expression to form the xpath? How can I avoid having to redo the test cases for each different language?
Thank you. Marta