Quality is delighting customers
how to find web table cell background color in qtp.
When i am trying to below code but getting error that object requierd.
strColor = Browser("Certificate Error: Navigation").Page("Oracle BI Interactive").WebTable("BEA SNE Id").Object.rows(2).cells(16).currentStyle.backgroundColor
Please tell me where i am going wrong.
Tags:
Use firebug in mozila firefox... But i dont know in DP
Unfortunately there is no direct way to find the web table cell background color.
Here is one method, I hope it may help you.
webeleData = Browser("Certificate Error: Navigation").Page("Oracle BI Interactive").WebTable("BEA SNE Id").GetCellData(2, 16)
Set dashBoardTableWebElement = Description.Create
dashBoardTableWebElement("micclass").Value = "WebElement"
dashBoardTableWebElement("innertext").Value = webeleData
Msgbox Browser("Certificate Error: Navigation").Page("Oracle BI Interactive").WebElement(dashBoardTableWebElement).Object.currentStyle.backgroundColor
Thanks.. its working :)
© 2021 Created by Quality Testing.
Powered by