Hello, dear friends!
At the time of writing autotests, there was a need to transfer not a static xPath, but a more or less dynamic one. I will explain with an example:
There is xPath:
"//select[@id = '1']/option[@text() = 'Текст']" There are variables:
String num = "1"; String text = "Текст"; You must pass these variables inside xPath:
"//select[@id = num]/option[@text() = text]" Please tell me how to do this? Thank!