How to define a webcheckbox in DP? - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: How to define a webcheckbox in DP? (/Thread-How-to-define-a-webcheckbox-in-DP) |
How to define a webcheckbox in DP? - Uma - 10-01-2011 Hi, This is my code, Code: Browser("name:=xyz","creationtime:=0").Page("name:=hhhh","title:=quattro").WebCheckBox("name:=963$7","html tag:=INPUT","html id:=963_7","value:=on").Set DataTable("AdditionalListingInfo","ListingAgentInfo") I described my code like this... Code: Browser("name:=xyz","creationtime:=0").Page("name:=hhhh","title:=quattro").WebCheckBox("name:=963$7","html tag:=INPUT","html id:=963_7","value:=on","index:="&i).Set DataTable("AdditionalListingInfo","ListingAgentInfo") but I am not sure how to give the "i "value,because everytime it will change according to the Excel sheet value.[I want to have the control of WebCheckbox selection ,It will be differ iteration to iteration..... 4 ,2...anything] Any help? Thank you, Uma RE: How to define a webcheckbox in DP? - rajpes - 10-01-2011 try this "name:=963\$7" RE: How to define a webcheckbox in DP? - Uma - 10-02-2011 Raj, It shows parameter is incorrect error, Thank you, Uma RE: How to define a webcheckbox in DP? - rajpes - 10-02-2011 Uma, you will have to try some trial and error with what properties to be used for that object first check whether page is getting highlighted Code: Browser("name:=xyz","creationtime:=0").Page("name:=hhhh","title:=quattro").highlight then try different combination of properties for check box Code: Browser("name:=xyz","creationtime:=0").Page("name:=hhhh","title:=quattro").WebCheckBox("name:=963$7").highlight and the way you have used "i" is correct provided all those webcheckboxes exist! i=0 indicates first check box in the page.If you are using index, do not use any other property since each chkbox has different name! RE: How to define a webcheckbox in DP? - Uma - 10-04-2011 Raj, Thank you so much. It works with html id property. Uma |