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
This is Karthic and my mail id is karthic.venkitapathi@gmail.com, please give me an idea to crack qtp 10
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..
How to do call a output parameter from one action to another action??/
When Recovery scenario actually starts while testing the application?
How can I change object description or check point values in qtp?
explain how to write vb script in qtp?when will you write own script?
how to find that tools work well with your existing system?
what is the difference between IE & Netscape in web testing on a log in page
What is qtpro? What is quick test pro?
I am facing an issue of object identification with the dropdown element of DHTML grid. When I tried to recognize these different dropdown objects, QTP identifies only one object for all the dropdowns. Hence, selection of different data from different dropdowns list is an issue. To overcome this problem, i have used Descriptive Programming technique by creating different object descriptions which have all the other properties same but differ only in one property i.e. ‘X’ location of the element on the screen. Hence, i have created distinct object descriptions that would allow us to select values in different dropdowns. The code is given below. But still I am unable to identify distinct dropdown objects. ‘Object Description for Dropdown Cell Status Set objCellStatus = Description.Create objCellStatus("micclass").value = "WebList" objCellStatus("name").value = "select" objCellStatus("x").value = 219 ------ ‘X’ Axis value for cell status drop down ‘Object Description for Dropdown Sub Segment Set objSubSegment = Description.Create objSubSegment("micclass").value = "WebList" objSubSegment("name").value = "select" objSubSegment("x").value = "319" ------ ‘X’ Axis value for sub segment drop down Please help... This is specific to DTML grid(Drop down object)
What are the technologies supported by qtp?
Can any one explain me what is the procedure to connect the remote desk by using QTP 9.2 ?
Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?
How does you pass optional arguments in qtp?
How can i check items sorted or not in a weblist ? Give me the script for this...