Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WebRadioGroup
#1
Solved: 10 Years, 9 Months ago
Hi,

Could someone help me with this problem please?
I have two radio buttons in a group and I want to verify when one is checked the other is unchecked, since group radio buttons have the same name I was thinking of using teh id of the radio button but how do I use it. Or please tell me if there is any other way to do this. If I use Check(CheckPoint(" ") I get same return for both and that is 'Checked'

Also I want to verify a WebEdit box is disabled. Whe i use Check(CheckPoint("") ) I get
Code:
Browser("").Page("").WebElement("WebElement_2").Check CheckPoint("WebElement_3")
. Is there any other way to verify whether the box is disabled.

Thanks,
Sqadri
Reply
#2
Solved: 10 Years, 9 Months ago
Hi Sqadri,

Try to spy both the WebRadioGroup objects, you will find one unique value that is different in both, try to do a checkpoint with that property.

Code:
Browser(,,,,,).WebRadioGroup(,,,).Checkpoint "Property",value

Same follow for the second one

For the WebEdit box check the disabled should be true
Browser(,,,,,).WebEdit(,,,).CheckProperty "disabled",false

Sunny
Reply
#3
Solved: 10 Years, 9 Months ago
Hi,

You can also go with index property for both the objects.

ex:
Code:
Browser().page().WebRadioGroup("class:=classname","index:=0").click
Please correct me if i am wrong in this.
Reply
#4
Solved: 10 Years, 9 Months ago
Hi,

For webradio group is selected or not..
Code:
strResult=Browser(strBrowser).Page(strPage).WebRadioGroup(strWebRadioGroup).GetROProperty("checked")
if strResult=True then
'Radio button is selected
Else
'Not seledcted

End IF

'For WebEdit
strValue=Browser(strBrowser).Page(strPage).WebEdit(strWebEdit).GetROProperty("enabled")

if strValue=True Then
'Web edit is enable
Else
'webedit id disabled
End If

Regards,
Ankesh
Reply
#5
Solved: 10 Years, 9 Months ago
Thank you all, I highly appreciate your help. I will give it a try.
Sqadri
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to click a webradiogroup button silpavinod 2 27,363 01-17-2013, 03:31 PM
Last Post: vishalu.vs
  Webradiogroup silpavinod 3 4,767 10-23-2012, 03:06 PM
Last Post: harishshenoy

Forum Jump:


Users browsing this thread: 1 Guest(s)