Please can someone point me to the right direction with below code?
driver.findElement(By.id("div#h4clock a.location").equals("London"));
I used getText("London") but it did not work.
I am quite new so any advise would be very much appreciated.
I also want to have a string to store the element London and display it using Println.
Many thanks in advance,
Hamid
div#h4clock a.location? If you have iframes you have to focus on the iframe prior tofindElement(...).