How to test background color and dynamic images which are
moving during runtime?
Answer Posted / xyz
i am not sure about testing the back groung color but
the code below
Dim ctrlWebEl, objWebEl
Set ctrlWebEl =Browser("Google").Page("Google").Link("Go to
Google.com")
Set objWebEl = ctrlWebEl.Object
sColor = objWebEl.currentStyle.color
sBackgrColor = objWebEl.currentStyle.backgroundColor
sFontSize = objWebEl.currentStyle.fontSize
sFontStyle = objWebEl.currentStyle.fontStyle
sFontFamily = objWebEl.currentStyle.fontFamily
sFontWeight = objWebEl.currentStyle.fontWeight
msgbox
(sColor&" "&sBackgrColor&" "&sFontSize&"
"&sFontStyle&" "&sFontFamily&" "&sFontWeight
)
helps us to get the color of a link or a webelement
we can do this using standard check point as well
not sure if this is the answer for ur questions
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What test cases can you automate using QTP?
In the application that I'm testing is having a WYSIWIYG editor.QTP is recording editor's body as web element. I want to add some data to this web Element at run time. The problem is that I cant find a method to add contents to this web Element. Can any one come up with an answer for this. Thankx.
What are the five challenges you faced in QTP?
What are the ways you can synchronize?
What are the data types in qtp?
In an interview, what r the general questions asked in QTP? pls give me anwser to this question?
How to create a standard checkpoint ?
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?)
Write a QTP script to enter a keyword in to Google search engine?
How to start recording using quicktest professional (qtp)?
What is difference in global and action sheet in qtp?
What ate the Technologies supported by QTP?
How we can import data from database?
What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????
If I give some thousand tests to execute in two days what do you do?