how to test background color and dynamic images during

runtime

Answers were Sorted based on User's Feedback



how to test background color and dynamic images during runtime..

Answer / 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

how to test background color and dynamic images during runtime..

Answer / sreeprasad

It is possible only in web applications only.by using check

points we have to test the back ground colour and dynamic

images.

for eg: Yahoomail page

back ground colour is blue

Is This Answer Correct ?    1 Yes 1 No

how to test background color and dynamic images during runtime..

Answer / akshar jain

hi sreeprasad can u send s acript for the samea

Is This Answer Correct ?    0 Yes 0 No

how to test background color and dynamic images during runtime..

Answer / satya

var=browser("gamil").page("gmail").image("tom and
jerry").get ro property("color")
msgbox var

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More QTP Interview Questions

How the exception handling can be done using QTP

6 Answers  


Have you faced any problems with object repository?

0 Answers  


Lets say,flipkart website...in search button we have entered category[i.e watches] it displays some items...question is how to test price displayed each product is correct or not through qtp

1 Answers   Cap Gemini,


what area in a web application cannot be automated.

1 Answers  


How can we write script for a .net application in QTP? Can we use VB Script for .net application.

1 Answers  






how to add a runtime parameter to a data sheet?

6 Answers  


Hi I able to record IE object but not able to record mozilla firefox 3 object using QTP 10. i don know wats the problem????

2 Answers  


in a web page hoe to check the dynamic links that rechabging with out using regular expressions

0 Answers   CTS,


Interviwer asked, How many years exper.. on QTP? I said, total 2 yrs exp in manual and QTP. QTP only current project arround 3 months. then interviewer ask , HOW BOLD YOU QTP? What you say?

1 Answers  


.how will you load the object during runtime

2 Answers   TCS,


How can get count of list box?

0 Answers  


I have to do testing for XML file using QTP. 1. I was given a sample XML, I had to edit that with my actual data and had to make a new XML-- this part is completed, I did that. 2. Now I have to copy the exact contents of that XML file and have to paste it in a web application as a request message for web appliaction processing, using QTP. So I am unable to copy and paste it in web application, please help me out.

1 Answers  


Categories