Checking background color and images using QTP

How can i check background color , bitmap images , graph in my application...???
i am using web application...

Questions by vijay_baala   answers by vijay_baala

Showing Answers 1 - 3 of 3 Answers

Retrieve the background color of the page:

Dim objPrimary, objSecondary
Set objPrimary=Browser("micClass:=Browser").Page("micClass:=Page").WebElement("WebElement")
Set objSecondary=objPrimary.object
bgcolor=objSecondary.currentStyle.backgroundColor
Print bgcolor

You can simply use Standard checkpoint for Images. Are you planning on using DP instead?

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions