Click on XPath-selected href link in Nightwatch?
Asked 07 September, 2021
Viewed 431 times
  • 61
Votes

The href text is identical to each other so I can't use XPath text.

I tried:

browser.useXpath().click("//a[href='./basket/removeItem.html?id=5de6710f75a5750f3d88495b')]");

but that doesn't work.

2 Answer