Quality Testing

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.

Views: 4316

Reply to This

Replies to This Discussion

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 :)

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2021   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service