以下は私のコードです
<TR ID="oldContent"><TD><input type="text" name="code" id="oldContent"></TD></TR>
<TR ID="oldContent"><TD><input type="text" name="code" id="oldContent"></TD></TR>
ここでは、テキスト ボックスの名前、ID、およびタイプが同じではありません。これらのテキスト ボックスにデータを入力することはできません。
私は以下を試しました
selenium.type("xpath=//input[1][@name='code']",87767);
selenium.type("xpath=//input[2][@name='code']",67458);
selenium.type("xpath=//input[1][@name='code' and @type='text']",87767);
selenium.type("xpath=//input[2][@name='code' and @type='text']",67458);
selenium.type("xpath=//input[@name='code' and @type='text'][1]",87767);
selenium.type("xpath=//input[@name='code' and @type='text'][2]",67458);
誰もそれを見つけるためにxpathで私を助けることができますか?