I went through the xpath tutorials and checked many other posts, so I'm not sure what I am missing. I am just trying to find the following element on xpath:
<input class="t-TextBox" type="email" test-id="test-username"/>
I have tried many things, for example:
element = findElement(By.xpath("//[@test-id='test-username']"));
Error Expression is not a legal expression .
I am using Firefox on a MacBook
Any suggestion would be greatly appreciated.
source share