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 is stepin & stepout?
how do you parameterize search button from the website? the page is a single winobject and i have made a virtual object button of search button but search box can't be converted into a winedit and if we try to convert it into winedit the value we enter in a searchbox appears as numbers in the script so we arent able to parameterize.help!!!
How many types of recording modes in the qtp?
What is the difference between a Function and Procedure in QTP?
what is the difference between modular framework & datadriven framework
Hai anyone please "Explain about Framework in QTP?"
What is an expert view and keyword view?
Where to use function or action?
i have doubt suppose iam purly working in manual, when i will get work to do on sql and performence testing? pls any one clarify doubt?
When you open QTP, how many sheets you can see?
If I give some thousand tests to execute in two days what do you do?
what is supply chain management?
How to creating an output value using quicktest professional?
how to disable the pop ups through QTP using a script
Define Environment Variable in UFT and its uses?