Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

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

1 Answers   iCreate,


take one exmple and write on that discriptive programe in qtp?

1 Answers  


If some requirements r changed during the testing process ,then how can u handle this in frame work?

1 Answers  


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.

0 Answers  


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??

2 Answers   TCS,


WHICH functionalities of QTP used in Banking project?

2 Answers   Tarang, Wipro,


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 ?

2 Answers   Syntel,


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

2 Answers  


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?

0 Answers  


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

4 Answers   Oracle,


Categories