Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Hi, When I click on a hyperlink a secondary pop-window will
open. In that pop-up window there will be 'N' number of
records arranged in with paging option in datagrid table.
Each rows contains two columns, one is text and the other
is a radio button. I will pass the first column value and
based in it the tool have to select the corresponding radio
button in that row. Please someone help me how to handle
this as am new to QTP.

Answer Posted / badri

'To find no of rows in webtable
rc=Browser(" ").Page(" ").WebTable(" ").RowCount
msgbox "No. of Rows: "&rc

'Give the text
b=inputbox("Enter the text u want to search....")
For i= 2 to rc
getdata=Browser(" ").Page(" ").WebTable("
").GetCellData(i,1)
msgbox getdata
If (ucase(trim(b)))=(ucase(trim(getdata))) Then
' msgbox "Both are Equal"
set obj= Browser(" ").Page(" ").WebTable("
").ChildItem(i,1,"webradiobutton",0)
obj.click
Exit for
'Go to next page
browser(" ").page(" ").webtable(" ").Link(" ")
End If
Next


' If wrong correct me

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between rational rose and QTP?

2188


What are the advantages of a Hybrid framework?

1059


What will be happen if i load object repository at run time, but it has already associated.

1704


What are table and db checkpoints?

1023


What are the features and benefits of quick test pro (qtp 8.0)?

1057


What is the use of running the scripts in Hidden-mode in UFT?

1171


what is the diffrence bw qtp architectute and qtp framework?

1950


I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?

1131


how to create flat file datasubmission in qtp

2397


What are the types of object repositories? Which one is you are using?

1113


Does QTP run in any environment?

1018


How to handle the exceptions using recovery secnario manager in quicktest professional (qtp)?

1003


Where you are storing your script?

1046


what are the limitations of smart identification in qtp 9.0

2313


In qtp, how you can remove the spaces from string?

920