Micro Focus QTP (UFT) Forums
How to check the multiple checkboxes in Datagrid/gridview using descriptive programe - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: General (https://www.learnqtp.com/forums/Forum-General)
+--- Forum: Posting Guidelines/Disclaimer (https://www.learnqtp.com/forums/Forum-Posting-Guidelines-Disclaimer)
+--- Thread: How to check the multiple checkboxes in Datagrid/gridview using descriptive programe (/Thread-How-to-check-the-multiple-checkboxes-in-Datagrid-gridview-using-descriptive-programe)



How to check the multiple checkboxes in Datagrid/gridview using descriptive programe - yuvaraj - 10-15-2013

How to check the multiple checkboxes in Datagrid/gridview using descriptive programming in QTP.

CODING....
----------------------------------------------------------------
Code:
Set d=browser("title:=Cargo Net - Windows Internet Explorer").page("title:=Cargo Net")
d.frame("html id:=iframe.*").webbutton("html id:=BTNSearchGrid").Click
wait 5
d.frame("html id:=iframe.*").webcheckbox("html id:=dgReferDetails_ctl03_CHKJobHBL","index:=1").Set"ON"
-------------------------------------------------------------------


RE: How to check the multiple checkboxes in Datagrid/gridview using descriptive programe - sshukla12 - 10-15-2013

Hi,

This might help u.

Code:
Dim obj_ChkDesc

Set obj_ChkDesc=Description.Create
obj_ChkDesc(“html tag”).value = “INPUT”
obj_ChkDesc(“type”).value = “checkbox”

Dim allCheckboxes, singleCheckBox

Set allCheckboxes = Browse(“Browser”).Page(“Page”).ChildObjects(obj_ChkDesc)

For each singleCheckBox in allCheckboxes

singleCheckBox.Set “ON”

Next

Regards,
Sankalp