如何在动态生成但最后一部分保持不变的下拉列表 ID 上使用 Selenium IDE 以命令结尾?
我试过了
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>
谢谢你的帮助...