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 can we test load time of an page in webtesting?
Hi Frenz... I would like to take up the QTP certification . Can anyone tell me what is the procedure. n if anybody have the study materials pls fwd it to jkpunathil@gmail.com
How to pass parameters into an action.Please explain me with examples
How will you report the bug and explain the defect tracking sheet you handled?
Could any one suggest web site links to learning VB Script for QTP purpose??
iam working in QTP for 2+ of exp if i attend the interview what r questions asked in perfomence testing{loadrunner} ? pls any one can say answer to this question?
Which functionalities of QTP used in banking project? pls any say answer?
write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object.. (give a filter condition only WEbelement- not easy need to use some more property while giving filter condtions- use google for your help...))
How to get line numbers in your editor in expert view?
How can we log a defect in Testdirector from Q.T.P ?
can some one help me how to compare the values from one sheet to values in another sheet? suposse i have a feild called Temp in action1 and i also have temp in action2. i want to compare the values of those two actions sheets data table? how can i do it using descriptive programming?
Give me At Least 5 Differences between DOCUMENTATION OBJECT MODEL(DOM)and COMPONENT OBJECT MODEL(COM)? Interviewer said me to WRITE the difference only in points not as you WRITE a paragraph ???? only in points