Multiple values for the same object

Hello,

I have some links in the AUT and the XPath looks like the following:

//a[contains(text(),‘Communication services’)]

Since the frontend can be used in German, English and French, the value “Communication services” can change.

How do I alter the script, in order to be able to cover all possible languages? I want to be able to run the tests in different languages.

Thank you very much for your support.

Best regards,
Marc

Simply put, you want to write an XPath that have a predicate that matches either of 3 languages using or operator

//a[contains(text(),'Communication services') or contains(text(),'Communication services in German') or contains(text(),'Communication services in French')]

@kazurayam

Yes that is exactly what I was looking for! Thank you so much!!

Have a nice day.

Regards,
Marc