Forum Discussion

NicolaFilosa_SE's avatar
NicolaFilosa_SE
Contributor
2 years ago
Solved

Using array values in xpath

Hi to everyone. I want to do a for cycle with elements defined by an xpath. The values that the for cycle uses are defined in an array. How can I insert the elements of the array in the xpath?

pageParameterDevice.FindElement("//tr[@id='rowPar2']/td[contains(@class, 'valdev')]").contentText

The value that has to change is 'rowPar2' (from rowPar1 to rowPar737)

Thanks in advance