Computer Science, asked by gunjancspatil5324, 1 year ago

How to replace variable inside xpath in web driver?

Answers

Answered by aravinthveer006
0

String newUser = "NewUser123";

driver.findElement(By.xpath("//td[normalize-space(text())='"+newUser+"']/a")).click();

Similar questions