Forum Discussion

sarvo's avatar
sarvo
Occasional Visitor
9 years ago

Unable to search innerText using: aqObject.CheckProperty(body, "innerText", cmpContains, str, false)

I'm trying to search a string using   aqObject.CheckProperty(body, "innerText", cmpContains, str, false)  where str = "test".

Script is unable to locate the string in this dropdown with checkbox. 

On a side note, script can search for other texts on the page in the internet explorer. Thank you

Source Code:

<tr>
<td nowrap="nowrap"><span class="sqlrv-radiotext"><input id="ctl00_ctl38_g_6ec6267a_af0f_44d9_b1d9_cb00847ea021_ctl00_ReportViewer_ctl04_ctl03_divDropDown_ctl05" type="checkbox" name="ctl00$ctl38$g_6ec6267a_af0f_44d9_b1d9_cb00847ea021$ctl00$ReportViewer$ctl04$ctl03$divDropDown$ctl05" onclick="$get(&#39;ctl00_ctl38_g_6ec6267a_af0f_44d9_b1d9_cb00847ea021_ctl00_ReportViewer_ctl04_ctl03&#39;).control.OnValidValueClick(this, &#39;ctl00_ctl38_g_6ec6267a_af0f_44d9_b1d9_cb00847ea021_ctl00_ReportViewer_ctl04_ctl03_divDropDown_ctl00&#39;);" /><label for="ctl00_ctl38_g_6ec6267a_af0f_44d9_b1d9_cb00847ea021_ctl00_ReportViewer_ctl04_ctl03_divDropDown_ctl05">test</label></span></td>
</tr>