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 the features and benefits of quick test pro(qtp)?

513


What are the factors on which script execution time is dependent?

605


The structure of keyword driven frame work is like a folder structure the different sub folder are 1-functional libray folder 2-object repository folder 3- database folder 4-appliction1.xls 5-initalzation vbs file 6-sequence file 7-driver script 8-test case list file My question is whether these are in a local server machine or in our pc.((whether It like Vss). can u give example of driver script(code)

2800


How to execute a winrunner script in quicktest professional (qtp)?

517


can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process

1282






What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????

1717


In QTP TEST DIRECTOR COMBINATION WHAT IS THE PURPOSE OF TEST DIRECTOR? In Somebody says to store test cases and design test cases.?ok fine , but In test director 5.0 , QTp not launching. what u do?

1489


whare exactly we have to use functions and sub routain

1844


I need to obtain the parent of an object programatically, so if I have: winButton("aButton") I need to obtain the parent part: window("Window1").Dialog("Dialog1") so I can programatically create a string of the full name of the object to call it with an execute statement in QTP I would like to use something like: part[1] = "window(""Window1"")" part[2] = "dialog(""Dialog1"")" so I can do: exeLine = part[1]&"."&part[2]&"."&"winButton(""aButton"")" Execute exeLine Apart from keeping a record of the window/dialog hierarchy is there a parent or path function/ command Thanks Adrian

1567


how did u use automating testing tools in ur job?

1482


Where should i find checkpoint and virtual objects's Object properties and values in the QTP 9.2 Means where checkpoints or virtual objects related data will store If i want to get the runtime object properties how can i use Getroproperties on Checkpoints

1457


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

544


How to do the scripting. Are there any inbuilt functions in QTP? What is the difference between them? How to handle script issues?

572


What contains Data Driven Framework document in qtp?

1463


What is smart identification in QTP?

625