Selenium IDE を使用していて、フィールド内のオートコンプリート項目をクリックしようとしています。要素をクリックする方法が見つかりません。アイテムをクリックすると、次のフィールドに入力されます。私はこれを2日間いじっていますが、理解できません。フィールド内でマウス カーソルを取得できた場合は、押してから Enter キーを押すと、おそらく機能します。私は試した:
<td>clickAt</td>
<td>id=txtCategory</td>
<td></td>
<td>keyPress</td>
<td>css=.ui-corner-all+.ui-corner-all+.ui-corner-all+.ui-corner-all</td>
<td>\40</td>
<td>keyPress</td>
<td>css=.ui-corner-all+.ui-corner-all+.ui-corner-all+.ui-corner-all</td>
<td>\13</td>
しかし、うまくいきませんでした。sendkeys、keydown、および keypress でフォーカスおよび/またはぼかしを使用しようとしましたが、それを機能させることができなかったようです。オートコンプリートの単語の上にマウスを置くと、ホバー状態になります。セレンでその状態にアクセスする方法が見つかりませんでしたし、必要かどうかもわかりません。どんな助けでも大歓迎です。
これは、Selenium IDEで試していたいくつかのこととともに、firebugによって検査されている間にクリックしようとしているフィールドの写真へのリンクです。
私も試しました:
値の場合、「顧客小切手が返送されました」と入力する必要がありましたか? フィールド内のテキストを取得できますが、実際にオートコンプリートされたテキストをクリックしないと、次のフィールドに入力されません。これが私が試したものです:
<td>typeKeys</td>
<td>css=.ui-corner-all+.ui-corner-all+.ui-corner-all+.ui-corner-all</td>
<td>Customer check bounced</td>
<td>fireEvent</td>
<td>css=.ui-corner-all+.ui-corner-all+.ui-corner-all+.ui-corner-all</td>
<td>focus</td>
<td>fireEvent</td>
<td>css=.ui-corner-all+.ui-corner-all+.ui-corner-all+.ui-corner-all</td>
<td>blur</td>
<td>keyPress</td>
<td>css=.ui-corner-all+.ui-corner-all+.ui-corner-all+.ui-corner-all</td>
<td>\13</td>
ありがとう、ボブ