動的に生成されたが最後の部分は同じままであるドロップダウンリスト ID で Selenium IDE の end-with コマンドを使用するにはどうすればよいですか?
私はもう試した
select
id=ends-with(@id, "_gridDropDownList")
label=A
select
xpath=//name[ends-with(@id, "_gridDropDownList")]
label=A
しかし、要素が見つからない、または xpath が無効であるというエラーが表示されます。
HTMLは次のとおりです。
<td class="select-field district2-field blogLocationAndTopicFields">
<label></label>
<select
id="ctl00_m_g_a5a2d9db_4beb_87c2_ce5e339b9858_ctl00_gridDropDownList"
class=""
name="ctl00$m$g_a5a2d9db_4beb_87c2_ce5e339b9858$ctl00$gridDropDownList"
style="background-color: rgb(255, 255, 255);"></select>
助けてくれてありがとう...