Unified Functional Testing (formerly QTP) News and Support Forum
Showing results for 
Search instead for 
Do you mean 

Programmatically Selecting an Item in a webradiogroup.

Frequent Advisor

Programmatically Selecting an Item in a webradiogroup.

Hi,

The page I am testing has a webradiogroup and in run time I want to select items automaciayy, not selcted on the data.

I don know which way to follow to use in this situation but I think to select an item automacailly, for example I want first (or second maybe) item int the WebRadioGroup to get selected programmaticaly while running the test.

 

When I select an item from webradigroup while recording, ir produces something like that..

 

'Browser("Denizbank").Page("Denizbank_2").Frame("frame_content").WebRadioGroup("GridRadioVP6d3b2987794a4884b0c").Select "0"

 

and when I write .... WebRadioGroup.

intelisense menu shows

 

_Default

_NewEnum

Count

GetProperty

Item

Setproperty

 

I am confused, which one do I need to use, and how ? Can anyone showan example, please ?

1 REPLIES
Regular Advisor

Re: Programmatically Selecting an Item in a webradiogroup.

So you want to always select the first item in your webradiogroup? Then the code you mentioned is the one you need to use:

Browser("xxx").Page("xxx").Frame("xxx").WebRadioGroup("xxx").Select "0"

The value "0" means the first item in your webradiogroup.