Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
How to retrieve the row color from WbfGrid
posted

Hello,

I am automating .NET web application using UFT14.03 and TA15.02. Tried with retrieving the row color of WbfGrid with below code but did not get expected row color (blue).

Method-1:

msgbox Browser("ServiceNow").Page("Provider Availability").WbfGrid("G_ctl00xContentPlaceHolder1xug").Object.rows(3).cells(1).currentStyle.backgroundColor

Method-2:
msgbox Browser("ServiceNow").Page("Provider Availability").WbfGrid("G_ctl00xContentPlaceHolder1xug").Object.rows.item(2).scurrentStyle.backgroundColor

Developer source code:

row.Style.BackColor = System.Drawing.Color.Blue;
 

Please let me know how to retrieve the row color from WbfGrid?

Thanks,

Guru

Parents Reply Children
No Data