3
XPath式を使用して、ちょうど私が要素を見つけ、罰金私のテストを実行することができますIWebdriver driver = new FireFoxDriver();
問題は
を使用して、RemoteWebDriver
を使用していない私のテストを実行している正常に動作しますが、私はRemoteWebDriverを使用して、私の設定を切り替えたときに、私が取得します私のテスト中に特定の部分のエラー。
私は次のエラーメッセージを受け取る:
Attempting to find outbound radio input to click
2012-01-18 15:50:11,522 [Simple Test Driver] INFO SeleniumGridExample.Utils.EventLogger - The driver is a SeleniumGridExample.Utils.ScreenshotRemoteWebDriver
2012-01-18 15:50:11,522 [Simple Test Driver] INFO SeleniumGridExample.Utils.EventLogger - Screenshot saved with exception: Session [1326893314795] not available - []
2012-01-18 15:50:11,522 [Simple Test Driver] INFO SeleniumGridExample.Utils.EventLogger - The driver is a SeleniumGridExample.Utils.ScreenshotRemoteWebDriver
2012-01-18 15:50:11,522 [Simple Test Driver] ERROR SeleniumGridExample.Utils.EventLogger - Screenshot could not be saved: Unexpected error.
<html>
<head>
<title>Error 501 Method {"USING":"XPATH","VALUE":"//INPUT[CONTAINS(@ID, is not defined in RFC 2068 and is not supported by the Servlet API </title>
</head>
<body>
<h2>HTTP ERROR: 501</h2><pre>Method {"USING":"XPATH","VALUE":"//INPUT[CONTAINS(@ID, is not defined in RFC 2068 and is not supported by the Servlet API </pre>
<p>RequestURI='0_lsDirection_ctrl0_lsLegs_ctrl0_inpSelect')]"}GET /wd/hub/session/1326893314795/screenshot</p>
<p>
<i><small>
<a href="http://jetty.mortbay.org">Powered by Jetty://</a>
</small>
</i>
</p>
</body>
</html>
は、ここでは誰もが[ID @ =」正常なIWebDriver driver = new FireFoxDriver();