Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to click a webradiogroup button
#1
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi All,

I am having some text and beside that text i am having radio buttons if the text matchs i need to click on radio button ....
Here the prblm is the radio buttons are in webradiogroup... how to click the webradiogroup buttons

Can anyone help me ASAP...
Reply
#2
Solved: 11 Years, 4 Months, 3 Weeks ago
I tried to get webtable count frm the below code
Code:
Set odesc=Description.Create
odesc("micclass").value="WebTable"
Set val=Browser("Link Tests_2").Page("Link Tests").ChildObjects(odesc)
msgbox val.count

I got the Count as 1
but after that not able to get the innertext or value...
Code:
a= val.GetROProperty("value")
msgbox a

When i record it is giving as below:
Code:
Browser("Link Tests_3").Page("Link Tests").WebRadioGroup("rdbResp").Select "1"

help me...
Reply
#3
Solved: 11 Years, 4 Months, 3 Weeks ago
You try changing as below
Code:
a=val.GetROProperty("innertext")
msgbox a

Once you get the value of innertext, you can write the below code
Code:
Browser("Link Tests_2").Page("Link Tests").WebRadioGroup("name:=rdbResp").Select a
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
MyBB how can i automatically click ok button in msgbox popup test 11 25,016 07-12-2022, 11:50 PM
Last Post: akash warke
  no action on click for particular wpf button jlavrecka 1 1,463 05-21-2020, 11:33 PM
Last Post: jlavrecka
  Help for instruction to click on Skip button in the warning message vijilesh 0 1,556 09-16-2018, 03:48 PM
Last Post: vijilesh
  Unable to Click on Login Button Paurav 1 3,324 07-03-2014, 05:27 AM
Last Post: supputuri
  Right Click On a Image and Click on a Link in WebElement RameshKrishnan 4 5,478 07-10-2013, 04:13 PM
Last Post: RameshKrishnan

Forum Jump:


Users browsing this thread: 1 Guest(s)