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 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??
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???
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?
hi i have one doubt is there any companies are taking correspandence courses plz leme know urjent
Use of Multiple Actions in QTP?
Plz explain about InTERNAl Environment variable, External environment variable,builtin environment variables with examples?
How we can add objects to the object repository during the running?is it possible or not?explain
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
How you test the object which is dynamically changes its location?
how to use import and export sheet methods in qtp
what is difference between wait and synchronization point.
how to use command prompt using qtp?