write script for "dropdown button having how many words? for ex.SELECT CITY is dropdown name.. find out how many cities in that?
Answer Posted / sandhya
Browser().page().weblist().getroproperty("items count")
here we use items count property to find the count in a drop
down list
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
in qtp if we record a object and we record the object using virtual wizard then by which way the object is recognized that means recorded
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)
How to execute a winrunner script in quicktest professional (qtp)?
How many types of recording facility are available in quicktest professional?
what is the difference betn QTP 8.0 AND PREVIOUS VERSION
What is active screen?
How to read a text file from QC using QTP. I would like to do something like this. But instead read a file from QC and NOT from my local drive. Set fso = CreateObject("Scripting.FileSystemObject") Set InputFile = fso.OpenTextFile("C:\test.txt", ForReading) Thanks
Explain in brief about the quicktest professional automation object model?
What is the short cut keys for the following?
What is the pros and cons between QTP and Rational Robot
What Folder Structure following in Keyword Driven Frame work?
What is QTP testing process?
Explain data driven framework?
hi Friends ,willany body tell me what is the Scope for the automation Testing inht Future is their Or not And what is the Top Most Level in the testing section according the Pay scale
when a test case is written how u test using qtp