@Test public void testGetLocator() throws WidgetException { wd.open(url); String test = "//DIV[@id='this_is_my_locator']"; IElement e = new Element(test); Assert.assertEquals("Test get locator should return the value passed in", test, e.getLocator()); }