06-17-2008, 12:32 AM
Hi All,
I got stuck at some point while using QTP, am summarizing it below.
While recording in QTP 9.2 if I click on list box, QTP generating the step as a WebEdit instead of generating WebList.
I have written descriptive programming to select the particular option in that list box as
ex :,
but here if I wrote like this it showing error message as that option name which is present in the list box it not in the Object Repository.
After that I added that List box to Object Repository & written some script like below:
With this descriptive programming when I run the QTP it showing Test is done, but in UI screen the option which I have selected in FireEvent, that’s not viewing in that Field picklist.
In UI screen the option I have selected in FireEvent, that not viewing and its not taking that option under count.
Can anyone Suggest me the solution for this..
Thanks in Advance,
Swethu
I got stuck at some point while using QTP, am summarizing it below.
While recording in QTP 9.2 if I click on list box, QTP generating the step as a WebEdit instead of generating WebList.
I have written descriptive programming to select the particular option in that list box as
ex :
Code:
weblist(“Weblistename”).Select”OptionName”
but here if I wrote like this it showing error message as that option name which is present in the list box it not in the Object Repository.
After that I added that List box to Object Repository & written some script like below:
Code:
Browser(“Name”).Page(“Name”).WebEdit(“FieldName”).Click
Browser(“Name”).Page(“Name”).WebEdit(“FieldName”).FireEvent”OptionName”
In UI screen the option I have selected in FireEvent, that not viewing and its not taking that option under count.
Can anyone Suggest me the solution for this..
Thanks in Advance,
Swethu