12-17-2013, 03:19 PM
Hi Sankalp,
Thank you for your response.
I had tried the following code:
But I get the following output 0.
I then tried to use another date "selecteddate:=30/Dec/2010" which had a different background color in the date cell but again get the same output which is the value 0.
I am therefore not able to capture the difference in color between the 2 date cells for SAPGUICalendar object.
Would really appreciate some help with resolving this problem that I am facing from QTP experts out there in the field.
Thank you for your response.
I had tried the following code:
Code:
hWndSource = SAPGuiSession("Session").SAPGuiWindow("Year Overview 2010").SAPGuiCalendar("Calendar_2").Object.GetColor("selecteddate:=28/Dec/2010")
msgbox hWndSource
But I get the following output 0.
I then tried to use another date "selecteddate:=30/Dec/2010" which had a different background color in the date cell but again get the same output which is the value 0.
I am therefore not able to capture the difference in color between the 2 date cells for SAPGUICalendar object.
Would really appreciate some help with resolving this problem that I am facing from QTP experts out there in the field.