(10-15-2012, 03:26 PM)sshukla12 Wrote:(10-15-2012, 01:49 PM)silpavinod Wrote: I am having a webtable in that i am having 2 rows and 1 col...
i am having one value in (1,1) other value in (2,1)
Beside (1,1) i am having a radio button
Beside (2,1) i am having a radio button
When i spy that radio button it is identifying as webelement.
now i need to click on one radio button which matches my data from data base
Help me...
(10-15-2012, 01:49 PM)silpavinod Wrote: I am having a webtable in that i am having 2 rows and 1 col...
i am having one value in (1,1) other value in (2,1)
Beside (1,1) i am having a radio button
Beside (2,1) i am having a radio button
When i spy that radio button it is identifying as webelement.
now i need to click on one radio button which matches my data from data base
Help me...
I worked in this way..
For i=1 to 2
val=Browser("qvolume").Page("qvolume").WebTable("I am happy with the sound.").GetCellData(i,1)
Msgbox val
My this i got the values from the 1st col...
For EX: i want to click on a radio button beside the value but the radio button is identiying as webelement and it is not showing in any row and col when i use standard checkpoint.
Hi,
If u want to click on radio btn then istead of using Getcell data use ChildItem......U can check QTP help file for its syntax.
Let me know in case of any queries.
Regards,
Sankalp
Make sure you Highlight object whenever QTP is not able to identify.
Usually try spying on the radio-button, i think you are spying Label next to radio button.
Please try below code,
Code:
db_value="xxx"
If Browser(...).Page(...).WebTable(...).GetCellData(1,1) = db_value Then
Browser(...).Page(...).WebTable(...).ChildItem(1,1,"WebRadioGroup",1).Select "#0"
Else
Browser(...).Page(...).WebTable(...).ChildItem(2,1,"WebRadioGroup",1).Select "#1"
End If