How to record sharepoint menu options with QTP?
I am new to QTP and need some assistance with my problem.
I am trying to automate my application which is developed with C#.net and using sharepoint framework.
When I try to record my application, QTP is recording the application but it is not recording the options in Sharepoint menu like 'Sign out' , 'My Settings' etc. Is there a way for me to make QTP recognise those objects? I am trying to manually add them to object repository. But it is a very tedious task. Can anyone please help me with this?
Thanks in advance
Re: How to record sharepoint menu options with QTP?
I had the same problem and the solution isn't the best but it works. Basically you need to get the coordinates of the Sign Out Web Element in that menu. You use that to perform
Device Replay - forcing a click on a location.
In my code below, I also added some logic to wait until the menu item was visible as I was having some trouble getting things to sync up.
Keep playing with the x and y coordinates to ensure you are clicking on the right location.
Browser("Home - Sharepoint").Page("Home - Sharepoint").Image("menudark").Click
ImgVisible = Browser("Home - Sharepoint").Page("Home - Sharepoint").WebElement("Sign Out").GetROProperty("visible")
While ImgVisible <> "True"
Set dr = CreateObject("Mercury.DeviceReplay")
dr.MouseClick 1187, 327, 0
Best of luck!