Selenium - Find a child element under a DIV
Well, depending on what language you're using, the method call will be different, but the selector should be the same across language bindings:
css:
"div.menuBar .menuItem"
xpath:
"//div[@class='menuBar']//*[@class='menuItem']"
In java, the call would look like this:
driver.find(By.cssSelector("div.menuBar .menuItem"));
You can use XPath: //div[@class='menuBar']//*[@class='menuItem']
.