Hi,
I am working on .Net Window Application Automation by Using UFT11.53 + TestAdvanatge10.2 (Product Version: 10.2.20102.2023 ).
Please let us know how to get text color (fore color) of UltraWinGrid cell.
I tired with below line of code, but it doesn't worked (Returning Empty).
Hi Dimitar,
Thanks,I Worked on below methods as you suggested and it doesn't worked as expected.
Method-1:
msgbox SwfWindow("swfname:=frmMrm").SwfWindow("swfname:=frmment").SwfWindow("swfname:=frmAssent_11").SwfTable("swfname:=ugMns").GetCellAppearance(2,2,appForeColor) Above Code throwing an error : Object doesn't support this property or method: 'GetCellAppearance'
Method-2:
msgbox SwfWindow("swfname:=frmMnForm").SwfWindow("swfname:=frmAment").SwfWindow("swfname:=frmAssessment_11").SwfTable("swfname:=ugPEGU").GetNAProperty("DisplayLayout.Override.CellAppearance.ForeColor")
Above code returning as R=0, G=0, B=0
The Scenario is UltraGrid Cells having Static Text, which colors will be change dynamically (if check box is checked color turned to Yellow and if we Unchecked color turned to Black).
Please let us know if anything additional information required from my side?
Thanks,
Guru
Hi Guru,
Thank you for contacting Infragistics Developer Support.
Please try the following method and let me know if you are able to get the appearance this way:
SwfWindow("Form1").SwfTable("ultraGrid1").GetCellAppearance(rowIndex,colIndex,appForeColor)
If not you can get the appearance using the GetNAProperty. This requires knowledge of how the application itself can set the appearance. One example of a possible approach would be to use:
SwfWindow("Form1").SwfTable("ultraGrid1").GetNAProperty(“DisplayLayout.Override.CellAppearance.ForeColor”)