how to select particular value from the combobox in the
current page which is entred in the previous page editbox
after parameterization?
Answers were Sorted based on User's Feedback
Answer / priya
' to Parameterize
browser().Page().Webedit().set DataTable("A",dtglobalsheet)
'fetch value from edit box at runtime
ItemToSelect = browser().Page().webedit().GetRoProperty
("value")
'Now get number of rows in combobox
x = browser().Page().webList().GetRoProperty("items count")
'loop through each item n try to match
for i = 1 to x
actualvalue = browser().page().weblist().getitem(i)
if(actualvalue = ItemToSelect)then
browser().Page().weblist().select actualvalue
exit for
endif
next
Is This Answer Correct ? | 3 Yes | 2 No |
Answer / rajendra pradeep
Using SPY first first know the class of that particular
objet.
If Browser("").Page("").WebList("name:=")Exist Then
X=Browser("").Page("").WebList("name:=").GetRoProperty
("ItemsCount")
For i=0 To X-1
lName=Browser("").Page("").WebList("name:=").GetRoProperty
("Name")
If lName="Which u want to Select" Then
Browser("").Page("").WebList("name:=").Select"lname"
End If
Next
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / saidev
First get the value from the edit box.Like
X=browser().Page().webedit().getropropertty
Next fix this X in the next page combobox.like
browser().Page().weblist().set "X"
correct me if iam wrong..
Thanks
saidev
Is This Answer Correct ? | 0 Yes | 2 No |
Answer / sdfd
Unfortunately you are wrong Saidev.
"select particular value from the combobox "
It is a ListBox.
You should use - Select x command
instead of Set- command.
Regards
Patil
Jai Ganesh Maharajki....
Is This Answer Correct ? | 0 Yes | 2 No |
How can i learn Descriptive programming in QTP. Please reply.
what is Synchronization point in QTP?Can anybody give a perfect example on it Thanks in advance
Where are the snapshots stored?
What kind of performance is expected on the client side (e.g., how fast should pages appear, how fast should animations, applets, etc. load and run)?
What test cases can you automate using QTP?
Where we write the FUNCTIONS, in Expert view (or) in any textfiles like Notepad and save it in Library functions folder? How to cal that functions to our script? How to save that functions to Function generator?
Is it possible to change the values of analog recording?
How to resume the second iteration in the QTP,, if the error has intrupted the the second iteration. When i use run from step it starting from the first iteration again.
what is descriptiveprograming? how to do object identification thrugh Descriptive and is possible smart identification or not
How to verify the Cursor focus of a certain field?
How to use userdifined environment variables.Once we created in Environment tab which is at File--> Settings-- >Environment-->Userdifined
How to export QTP results to an .xls file?