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 to test the login page in different ways in automation testing and i need code?
WHAT IS THE USE OF "FUNCTION GENERATOR" IN QTP?
How to execute a WinRunner Script in QTP?
Does Low-level recording capture mouse movements?
I installed QTP 9.5 on vista. Can someone please provide me the license key of the same. Thanks, Avi
did you perform retesting(DATA DRIVEN test) using functions with out using datatable methods how can you perform retesting using functions
How we can add actions in the test using QTP?
Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?
What are the different scripting languages you could use when working with QTP ?
How can I change object description or check point values in qtp?
Does we use Classes and methods in realtime..?How wud we access methods in a class..?Thanq Guys..!
Which version of QTP is using by companies nowadays?