getAttribute メソッドの使用中に無効な xpath エラーが発生します... firepath で同じ xpath を使用して画像を見つけることはできますが。
私は以下の方法を使用しています..
String imgAtt = StartServer.browser.getAttribute("//img[contains(@alt,'Selenium IDE Logo')]");
エラー:
スレッド「メイン」での例外 com.thoughtworks.selenium.SeleniumException: エラー: 無効な xpath [2]: //img[contains( at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:112)