EclipseとSeleniumRCを使用してTestNGでSeleniumを実行しています。次のコマンドを使用しました:
selenium.captureEntirePageScreenshot("\\test.png","");
しかし、次のエラーが発生しました:
com.thoughtworks.selenium.SeleniumException: ERROR: Command execution failure. Please search the forum at http://clearspace.openqa.org for error details from the log window. The error message is: Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsILocalFile.initWithPath]
誰かがこのエラーが発生している理由を提案できますか?私はすでに次のことを試しました:
1)「」(文字列kwargsパラメータ)を「background =#CCFFDD」に置き換えました
2)FirefoxでChromeモードで実行する
3)パスを次の値に変更してもエラーが発生します: "\ test.jpg"、 "c:\ test.jpg"、 "c:\ test.png"、 "c:\ folder1 \ test .png "、(folder1が存在します)" c:\ folder1 \ test.jpg "、
4)-selenium.captureScreenshot( "\ test.png");で試してみました。そしてそれはうまく機能しますが、それは私の目的を解決せず、私はawtを使いたくありません。
誰かが何が間違っている可能性があるかを提案できますか?
ありがとう、
無限