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 globalisation testing using qtp? lets take an example: suppose i have to test the word is in hindi "ratikanta", how we test it by using descriptive programming or any method??

2 Answers   Siemens,


can anyone please tell me what are all the shortcut keys used for qtp9.2? Thanks in advance..i expect ur valuable reply that help us our team???

0 Answers  


In a page i have N number of links at a time i would like to open those links by using QTP?how to do that?

2 Answers   Wipro,


hi i have one doubt is there any companies are taking correspandence courses plz leme know urjent

2 Answers  


Use of Multiple Actions in QTP?

3 Answers  






Plz explain about InTERNAl Environment variable, External environment variable,builtin environment variables with examples?

1 Answers   TCS,


How we can add objects to the object repository during the running?is it possible or not?explain

3 Answers  


Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks

0 Answers  


How you test the object which is dynamically changes its location?

7 Answers   Wipro,


how to use import and export sheet methods in qtp

1 Answers  


what is difference between wait and synchronization point.

3 Answers   IBM, Intel,


how to use command prompt using qtp?

8 Answers   HCL,


Categories