Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get background color for individual days in SAPGUICalendar with QTP
#6
Solved: 10 Years, 10 Months ago
Hi Sankalp,

Again thank you for your recommendation.

using your code I get the following error message "Object doesn't support this property or method: 'currentStyle'."

Seems like the SAPGuiCalendar object does not support this property/method currentStyle.

The only methods I am able to use with Object. are the following:
Object.GetColor("selecteddate:=28/Dec/2010") this gives me the value 0 if I select another date with different background color I still get value 0 with this method
Object.GetColorInfo() for this method I am unable to make it work as I have to enter a color within the bracket of this method so not sure what value to input

Also I have used the following:
Code:
msgbox SAPGuiSession("Session").SAPGuiWindow("Year Overview 2010").SAPGuiCalendar("Calendar_2").GetROProperty("color","selecteddate:=28/Dec/2010")
but for this code I get a blank message no value being returned.

Maybe I am missing something very simple, really hope someone can shed somelight into this.
Reply
Jump to the post that solved this thread.


Messages In This Thread
RE: How to get background color for individual days in SAPGUICalendar with QTP - by AMirza - 12-17-2013, 05:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problems with Text color recognition Treirk 0 1,101 06-17-2019, 12:19 PM
Last Post: Treirk
  Getting background color of an object on mouse over Surya 2 3,887 06-27-2018, 08:51 PM
Last Post: vensas3181
  How can we get the Windows application Text box background color Using UFT 11.53 Kuppampattu 3 6,019 06-06-2017, 11:12 AM
Last Post: workrohit08
  SwfTreeview - Color validation for child item YogeshCallappa 0 2,290 11-10-2016, 04:55 PM
Last Post: YogeshCallappa
  how to get background color of a WinButton javierchen 1 3,048 03-17-2015, 10:59 PM
Last Post: babu123

Forum Jump:


Users browsing this thread: 1 Guest(s)