How to replace variable inside xpath in web driver?
Answers
Answered by
0
String newUser = "NewUser123";
driver.findElement(By.xpath("//td[normalize-space(text())='"+newUser+"']/a")).click();
Similar questions