I am trying to click on the button Edit
button from drop-down list using WebdriverIO:
Inspecting the dropdown element yields the following HTML structure:
Currently using this approach:
driver.findElement(By.xpath("//*[text()[contains(., '"+"Edit"+"')]]" )).click();
Unfortunately it's not woring. How should I proceed to make it work?