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)


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More QTP Interview Questions

can any one tell me what is syntax error in line msgexist=Browser("title:=Gmail: Email.*").Page( "title:=Gmail: Email .*").WebElement(innertext=&msg).exist 'code ************** Call login("lal="," " ) wait(5) Call errormsg("Invalid email address. [?]" ) Function errormsg(msg) msgexist=Browser("title:=Gmail: Email.*").Page( "title:=Gmail: Email .*").WebElement(innertext=&msg).exist if msgexist then Reporter.ReportEvent micPass,"enter valid username or pwd ",msg else Reporter.ReportEvent micFail, "entered valid uname and pwd",msg end if End Function

5 Answers  


How to run a script from lines 50 - 100 alone (if the script has 1- 200 lines of code)?

6 Answers  


What are the Test design techniques you uses in ur project?

0 Answers   Accenture,


Suppose u run ur script today and it is working fine ,nobody has changed the setting and all.u r the owner for the script. But when tomorrow I ran the same script again it got failed and It didn't able to identify one object. Can you tell me what would be the reason for this

4 Answers   L&T,


Does any one worked on JIL Emulator , Testing with QTP(automation). Trail Version of QTP is not identifying the child objects of JIL emulator, Can any one help me out ,

0 Answers  


Could any one explain about the nested actions in QTP? This question is asked by Qualitree and CA

3 Answers   CA, Qualtree Solutions,


Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?

0 Answers   IBM,


What is Expert view?

4 Answers  


Where is the resultset of a sqlquery (which is fired by rsobj.open sqlquery,xxxx,xxxx) stored ?

0 Answers   Accenture,


How do you synchronization point through DP?

0 Answers  


Under what conditions would you recommend QTP for future projects?

1 Answers  


which type of testing process are you following in ur company? how to recognize a qtp page?

0 Answers  


Categories