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



how to select particular value from the combobox in the current page which is entred in the previo..

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

how to select particular value from the combobox in the current page which is entred in the previo..

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

how to select particular value from the combobox in the current page which is entred in the previo..

Answer / ramakrishna

getroproperty

Is This Answer Correct ?    0 Yes 1 No

how to select particular value from the combobox in the current page which is entred in the previo..

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

how to select particular value from the combobox in the current page which is entred in the previo..

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

Post New Answer

More QTP Interview Questions

How can i learn Descriptive programming in QTP. Please reply.

3 Answers  


what is Synchronization point in QTP?Can anybody give a perfect example on it Thanks in advance

5 Answers  


Where are the snapshots stored?

2 Answers  


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)?

0 Answers  


What test cases can you automate using QTP?

0 Answers  






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?

3 Answers  


Is it possible to change the values of analog recording?

0 Answers  


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.

1 Answers  


what is descriptiveprograming? how to do object identification thrugh Descriptive and is possible smart identification or not

5 Answers   Syntel,


How to verify the Cursor focus of a certain field?

1 Answers  


How to use userdifined environment variables.Once we created in Environment tab which is at File--> Settings-- >Environment-->Userdifined

0 Answers   Livetek,


How to export QTP results to an .xls file?

10 Answers   IBM,


Categories