assertEquals("The element was not referenced from parent WebElement correctly!", EXPECTED_JQUERY_TEXT_2, div.getText());
}
@Test
public void testJQuerySelectorCallingFindByDirectly() {
ByJQuery headerBy = new ByJQuery(":header");
WebElement headerElement = browser.findElement(headerBy);
assertNotNull(headerElement);
// unlike other drivers, SafariDriver returns tag names in upper case
assertEquals("h1", headerElement.getTagName().toLowerCase());