Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using a Radio Button within a WebTable
#4
Solved: 11 Years, 4 Months ago
A little bit more explanation ... Wink Here is the Webtable with onw RadioButton Group:

First Run

1,1 -> WebradioButton #0
1,2 -> WebradioButton #1
2,1 -> WebradioButton #2
2,2 -> WebradioButton #3

Secon Run
1,1 -> WebradioButton #0
1,2 -> NO RadioButton
2,1 -> WebradioButton #1
2,2 -> WebradioButton #2
-> see that the index changed? Last button is now #2 and not #3

Third Run
1,1 -> WebradioButton #0
1,2 -> NO RadioButton
2,1 -> WebradioButton #1
2,2 -> WebradioButton #2
3,1 -> WebradioButton #3
3,2 -> NO RadioButton

-> In this example, we got a new colum ...

So what I want to do is this: Dear QTP - please go to column X and row Y and select the correct (!) radiobutton by looking as its index Wink
I also found this code, but again you have to set the <index> which I don't know before running the test ...



Code:
set WebRadioGroupname=Browser("Browsername").Page("Pagename").WebTable("Tablename").ChildItem(<RowCount><Column Count>,"WebRadioGroup",<Index>)
ab= WebRadioGroupname.GetRoProperty("name")
Browser("Browsername").Page("Pagename").WebRadioGroup("RadioGrpLogicalNameFromObjectRepo").SetTOProperty "name",ab
Browser("Browsername").Page("Pagename").WebRadioGroup("RadioGrpLogicalNameFromObjectRepo").Select "#0"
Reply


Messages In This Thread
RE: Using a Radio Button within a WebTable - by michiusa69 - 04-05-2011, 01:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP 11 is unable to recognize prime faces components ,for ex: List and radio butt pradeep singh 8 7,025 02-27-2013, 04:42 PM
Last Post: pradeep singh
  How to click a radio button inside a webtable silpavinod 9 13,708 01-24-2013, 04:09 PM
Last Post: vishalu.vs
  Radio Buttons petes85gt 0 3,365 02-22-2012, 03:41 AM
Last Post: petes85gt
  Click image button in 5th col of a webtable if searchcriteria meets content of 4cols sunshine 2 4,518 08-12-2010, 09:17 AM
Last Post: sunshine
  How to Create Radio Button in QTP edqtp 3 6,842 02-23-2010, 11:10 AM
Last Post: Saket

Forum Jump:


Users browsing this thread: 1 Guest(s)