I am getting invalid xpath error while using getAttribute method... though I am able to locate the image using same xpath in firepath.
I am using below method..
String imgAtt = StartServer.browser.getAttribute("//img[contains(@alt,'Selenium IDE Logo')]");
Error:
Exception in thread "main" com.thoughtworks.selenium.SeleniumException: ERROR: Invalid xpath [2]: //img[contains( at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:112)