How do I access a nested element without using xpath
this is how I would write it in Selenium WebDriver (Ruby)
@browser.find_element(:class, 'mapLock').find_element(:class => 'mapLockOverlay').click
But how would I write it in JAVA I have tried:
browser.findElement(By.className("mapLock").findElement(By.className("mapLockDisplay").click
which I know is obviously wrong