how to test background color and dynamic images during

runtime

Answer Posted / gom

For Web Appln:
Set Search = Browser("name:=.*").Page
("title:=.*").WebElement("innertext:=.*","Index:=1")
Set obj = Search.Object
BgColor = obj.currentStyle.backgroundColor
If BgColor <> "" Then
Msgbox "Pass"
Else
Msgbox "Fail"
End If

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain step generator in qtp?

630


Hi all Can u give me the link where we can download full version of qtp my mail id is karthic.venkitapathi@gmail.com

1335


What is test object model in quicktest professional (qtp)?

531


What is the difference between run time object and test object in QTP?

554


How to make qtp understand the difference amongst the same type of objects .suppose there are 5 check boxes in a page and I have to choose the 2nd one, how to do that through script?

551






give me the code to save all messages of inbox of gmail into a folder and notepad

1605


1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP

1528


How to customize qtp?

600


Hi there, I've installed a trial version of QTP to see if it works with my product but I cant automate selecting windows from a tree view? Can anyone give me any pointers? Many Thanks

1403


How we can import data from database?

637


Please provide specific examples of advanced/creative usage of QTP, including how impact & benefits for your project

1623


Explain Descriptive Programming Types with Examples?

912


Can the user toggle between using Local OR and shared OR for the same action?

548


Tell some commonly used Excel VBA functions?

586


Is there any relation between Keyword Driven Framework and Recording modes provided in QTP( whether Recording modes are applied on keyword driven framework or not?)

1436