Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to check the multiple checkboxes in Datagrid/gridview using descriptive programe
#1
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"
-------------------------------------------------------------------
Reply
#2
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)