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 |
if we can find the status of script in qtp that either it's pass or fail then why we need to put this status on different excel file or log file in hybrid framework .please let me know asap thanks
take one exmple and write on that discriptive programe in qtp?
If some requirements r changed during the testing process ,then how can u handle this in frame work?
Hi friends I need to know about jubula automation tool. Is anybody know in bangalore where jubula tanning class is going on do let me know. Its urgent for me to learn that tool please help.
Can anybody give the script of below things. 1. Add sheet 2. Adding columns 3. Set the values in that columns(In the rows) 4. Close the sheet 5. How can we create 3 sheets in one Excel sheet??
WHICH functionalities of QTP used in Banking project?
what is the extension for QTP files?
16 Answers American Solutions,
how to choose the framework in qtp ? 2)when we go for the descriptive programming ?
how to write code for to select all the checkboxs in the gmail i wrote code for my question but it didn't works any body suggest what wrong my code my code is Set chkboxDesc=Description.Create() chkboxDesc("type").value="chekbox" Set chboxcollection=Browser("name:=Gmail .*").Page("title:=Gmail .*").ChildObjects(chkboxDesc) For i=0 To chboxcollection.count-1 chboxcollection(i).set "ON" Next i was getting general run time error pls help me i am in learing stage
for example u can take ebay or plifcart online shoping web application--------- write acode in vbscript in qtp---- search box and write (iphone6)and click on go button then opened diff prise iphones in next page but u can select 30,000 to 90,000 list pls write code?
2 Answers FFASVA, Genpact, Wipro,
When ‘option explicit’ keyword is used in qtp?
you written some code in qtp for opening google.com browser and entered some text inthe search text box and clicked search button. this is ur script.. before running this script i have already opened two google.com browsers. now am running the script what will happen? script will run or what?? Thanks... Nani