Ask a Question

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

sarvo
Occasional Visitor

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>

1 REPLY 1
Marsha_R
Community Hero

Did you try to include an image in your post?  Try attaching it as a file instead.  


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
cancel
Showing results for 
Search instead for 
Did you mean: