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 to test the login page in different ways in automation testing and i need code?

0 Answers   Cognizant,


WHAT IS THE USE OF "FUNCTION GENERATOR" IN QTP?

9 Answers   CTS,


How to execute a WinRunner Script in QTP?

1 Answers   Crea,


Does Low-level recording capture mouse movements?

0 Answers  


I installed QTP 9.5 on vista. Can someone please provide me the license key of the same. Thanks, Avi

2 Answers   Xavient,






did you perform retesting(DATA DRIVEN test) using functions with out using datatable methods how can you perform retesting using functions

3 Answers  


How we can add actions in the test using QTP?

2 Answers  


Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?

0 Answers  


What are the different scripting languages you could use when working with QTP ?

6 Answers  


How can I change object description or check point values in qtp?

0 Answers  


Does we use Classes and methods in realtime..?How wud we access methods in a class..?Thanq Guys..!

3 Answers  


Which version of QTP is using by companies nowadays?

4 Answers  


Categories