A webPage has a ComboBox with 10 values in it.
Write a script to select 4 vales from it using CTRL key
Answer Posted / sesibhushan
set listObj=Browser("micclass:=Browser").Page
("micclass:=Page").WebList("micclass:=WebList","name:=XXXX"
listObj.select "#1"
listObj.select "#2"
listObj.select "#3"
listObj.select "#4"
Note: This will work for combobox also.
| Is This Answer Correct ? | 2 Yes | 6 No |
Post New Answer View All Answers
what is defenetion of kiran can u tell me plz CVS, SVN
Explain the difference between check point and output value?
we use a file extension .properties why is it used and where do we use it plz help me out with detailed explanation and navigation of how to use on the QTP 8.2?
What are the different attributes used with regular expression?
How is UFT 11.5 version different from UFT 12.0?
How does qtp recognize objects in aut?
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What is the difference between them? How to handle script issues?
What is the quicktest professional testing process?
How will you check a web application for broken links using qtp?
How many types of recording modes in qtp? Describe each type with an example where we use them?
What is checking bitmaps?
Difference between test object and run time object?
what is the advantages and disadvantages of using functions instead of re usable actions
when I try to run below script in QTP "totalPages" value is 2. But i am getting error message (Type mismatch: 'totalPages' Line (): "For i=1 to totalPages".) totalPages=Browser("Name:=User").Page("Title:=User").WebElem ent("innertext:=of.*").GetROProperty("InnerText") msgbox totalPages For i=1 to totalPages rnum=Browser("Name:=User").Page("Title:=User").WebTa ble("column names:=User Name;ID;Last Name;First Name").GetRowWithCellText("store4") If rnum>0 Then r=rnum Exit for End If Browser("Name:=User").Page("Title:=User").WebElement ("html tag:=A","x:=471").Click MsgBox "Exit" Next
Where to use function or action?