I\'ve been through the xpath tutorials and checked many other posts, hence I\'m not sure what I\'m missing. I\'m simply trying to find the following element by xpath:
You missed the closing parenthesis at the end:
element = findElement(By.xpath("//[@test-id='test-username']"));