Working with Radio Group
To check whether radio group exist or not
Browser("title:=browser").Page("title:=page).WebRadioGroup("name:=newEnrollEmployeeType").Exist(10)
To select radio button
Browser("title:=browser").Page("title:=page).WebRadioGroup("name:=newEnrollEmployeeType").Select "#1"
or
Browser("title:=browser").Page("title:=page).WebRadioGroup("name:=newEnrollEmployeeType").Select "N"
Allitem values should give in Select Value
To get how many radio buttons in group
itemcnt=Browser("title:=browser").Page("title:=page).WebRadioGroup("name:=newEnrollEmployeeType").GetROProperty("items count")
msgbox itemcnt
No comments:
Post a Comment