How can I use a Selenium IDE ends-with command on a drop down list ID which is dynamically generated but the last part remains the same?
I've tried
select
id=ends-with(@id, "_gridDropDownList")
label=A
select
xpath=//name[ends-with(@id, "_gridDropDownList")]
label=A
But I get an error that the element isn't found or invalid xpath.
Here is the 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>
Thanks for any help...