AdvancedQTP Forums
Sponsored by Solmar Knowlege Networks
Return to advancedqtp
Home
Search
Login
Register
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Advanced search
18120
Posts in
4741
Topics- by
31743
Members
- Latest Member:
suuraj
you are here:
AdvancedQTP Forums
»
AdvancedQTP Forums
»
General QTP Q&A
» (Moderators:
Paul Grossman
,
Stefan Thelenius
,
Asiq Ahamed
)Can't able to select the submenu from the main menu in our application in QTP
corp-lt Theme designed by
padexx
« previous
next »
Pages: [
1
]
Go Down
0 Members and 1 Guest are viewing this topic.
Author
Topic:
Can't able to select the submenu from the main menu in our application in QTP
(Read 1391 times)
Ganesh
User
Offline
Posts: 4
Can't able to select the submenu from the main menu in our application in QTP
«
on:
November 28, 2007, 05:29:15 AM »
HI Guys,
While i try to select the Submenu from the main menu in our web application The qtp is not identifying those objects. When i try to spy those object its showing the property values with null. Im getting only the Class name for that object. aother properties are empty.
In these situation how can we identify the object and click the particular submenu from the menu .
Pls Help me. Its critical in our application.
Logged
Prakash Kumar
User
Offline
Posts: 32
I am working as a automation Tester in TCS
Re: Can't able to select the submenu from the main menu in our application in QTP
«
Reply #1 on:
November 28, 2007, 05:51:52 AM »
Hi,
Can you attach snapshots of obj-spy and pages for better understanding?
Logged
Dani Vainstein
Administrator
Advanced User
Offline
Posts: 623
Re: Can't able to select the submenu from the main menu in our application in QTP
«
Reply #2 on:
November 28, 2007, 06:00:18 AM »
kumprak stoled my words....
attaching snapshots will be very helpfull
also wich version of IE you have ( 6.0 , 7.0 )
i think that your problem is the popup-page.
«
Last Edit: November 28, 2007, 11:13:10 AM by Dani Vainstein
»
Logged
Best Regards,
Dani Vainstein
Mercury CPC
http://www.advancedqtp.com
Prakash Kumar
User
Offline
Posts: 32
I am working as a automation Tester in TCS
Re: Can't able to select the submenu from the main menu in our application in QTP
«
Reply #3 on:
November 28, 2007, 08:19:07 AM »
Hi Dani
You are a Pioneer of QTP. I have n't stolen your words. I just learning from you or following you to become like you....
Regards,
Prkash Kumar
Logged
Ganesh
User
Offline
Posts: 4
Re: Can't able to select the submenu from the main menu in our application in QTP
«
Reply #4 on:
November 28, 2007, 11:48:54 PM »
Ya sure,
I will attach the snapshot of the spy object. And we are using the IE6.0 to test our application
Logged
Prakash Kumar
User
Offline
Posts: 32
I am working as a automation Tester in TCS
Re: Can't able to select the submenu from the main menu in our application in QTP
«
Reply #5 on:
November 29, 2007, 12:11:10 AM »
Hi
You haven't pointed object in your attachement whose properties and methods u captured via ObjSpy. Kindly also mention that one. Also attach the snapshots of ur menu and submenu.
Logged
Ganesh
User
Offline
Posts: 4
Re: Can't able to select the submenu from the main menu in our application in QTP
«
Reply #6 on:
November 29, 2007, 02:18:12 AM »
Hi,
Find the snapshot attachment
Logged
Prakash Kumar
User
Offline
Posts: 32
I am working as a automation Tester in TCS
Re: Can't able to select the submenu from the main menu in our application in QTP
«
Reply #7 on:
November 29, 2007, 03:13:58 AM »
Hi,
You can use FireEvent "onmouseover" on your menu "MyDesks" to launch pop of sub menu. Then fire the Click event on sub menu "My Issues" to launch tne page.
It is not easy to me interpret from detail provided by you. Can u provide obj-spy of object MyDesks and recorded script-code of these actions for more clearity.
Any way I am providing some code which might be helpful to you.
Browser(...).Page(....).Link(MenuName).FireEvent "onmouseover" 'To display poppu..
Page("Page").Link("SubmenuName").Click 'For submenu
Please let me know this is helpful to you or not. If not please provide me more detail mentioned above.
Regards,
Prakash Kumar
Logged
Ganesh
User
Offline
Posts: 4
Re: Can't able to select the submenu from the main menu in our application in QTP
«
Reply #8 on:
November 29, 2007, 03:42:06 AM »
Hi prakash,
Sorry yaar, Actually i have to click the menu. In QTP it is identifying has webelement. I can able to click the main menu but not ben further moved to the sub menu levels and click the menus.
I will send u the sample code which i developed
Browser("Matrix10 Applications").Page("Matrix10 Applications").WebElement("innertext:=Tools ","index:=0").Click
'wait(1)
Set oDesc = Description.Create()
oDesc("micclass").Value = "WebElement"
Set objcol = Page("Page").ChildObjects(oDesc)
obj= objcol.count()
For i=1 to obj-1
mystr= objcol(i).GetROProperty("text")
'MsgBox mystr
mystr1 =StrComp(mystr ,"Preferences...",1)
'MsgBox mystr1
If mystr1 =0 Then
objcol(i).Click()
Reporter.ReportEvent 0, "Custom Step", "The user-defined step Passed."
Exit for
Else
Reporter.ReportEvent 1,"Menu Selection","The Usr defined step Failed."
End If
Next
Logged
Pages: [
1
]
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
AdvancedQTP
-----------------------------
=> Bulletin Board
-----------------------------
AdvancedQTP Load & Performance Forums
-----------------------------
=> Load & Performance Q&A
-----------------------------
AdvancedQTP Forums
-----------------------------
=> General QTP Q&A
=> Web Q&A
=> Web Services Q&A
=> .Net Q&A
=> Java Q&A
=> ActiveX Q&A
=> SAP Q&A
=> TE Q&A
=> Siebel Q&A
=> Quality Center Q&A
-----------------------------
AdvancedQTP Products Support
-----------------------------
=> Reporter Manager Q&A
-----------------------------
AdvancedQTP Free Tools Forums
-----------------------------
=> AutoIt Q&A
-----------------------------
FR Project Forum
-----------------------------
=> FR Project
-----------------------------
AdvancedQTP Forums Support Center
-----------------------------
=> TroubleShooting
Loading...