All Questions
1 question
2
votes
1
answer
311
views
Unable to pass dynamic xpath in repository file?
My code is :
for (int z = 0; z < rows.size(); z++) {
rows.get(z).findElement(By.xpath("//*[@class='ng-scope'][" + (z + 1) + "]//*[@placeholder='Stop Name']")).sendKeys(shuttleObj.getStopArea());
...