Wednesday, 19 March 2014

How to check and uncheck the perticular check box using QTP script



1) script for check the perticular check box

Browser("OLM Training").Page("Cart").WebCheckBox("WebCheckbox12").Set "ON"


2) script for un check the perticular check box

Browser("OLM Training").Page("Cart").WebCheckBox("WebCheckbox12").Set "OFF"


3) select the perticulat item from check box.


For i=1 to rc
  Table_linkText=Browser("projectCentre QTP:TEST-AT:").Page("projectCentre QTP:TEST-AT:").Frame("RegRegRegFrame").WebTable("...").GetCellData(i,3)
If (Expected_Link=Table_linkText) then
  Browser("projectCentre QTP:TEST-AT:").Page("projectCentre QTP:TEST-AT:").Frame("RegRegRegFrame").WebTable("...").ChildItem(i,1,"WebCheckBox",0).Set "ON"

1 comment:

  1. I appreciate how you simplify complex ideas. Thank you for making learning enjoyable and easy. Visit this article for fresh insights. Dive into Geometry Dash Free world of rhythm-based challenges and see if you can conquer its toughest levels with perfect timing.

    ReplyDelete