how to test background color and dynamic images during
runtime
Answer Posted / chanikya reddy
Set ctrlWebEl = Browser("Welcome to Gmail").Page("Welcome to Gmail").WebElement("Welcome to Gmail")
Set objWebEl = ctrlWebEl.Object
sColor = objWebEl.currentStyle.color
'or u can use
sBackgrColor = objWebEl.currentStyle.backgroundColor
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
I am in .Net development for past 3.5 years and want to enter in to automated testing and learn QTP. For this I need some good tutorial for beginners. I will be really greatful if any one has and they can send it to me on this address- ruchidureja@gmail.com
What is synchronization? What are the ways you can synchronize?
Is it possible to refer the same object for referring more than one object that are of different class using the descriptive programming approach? Suppose my code is 'To create the object named as obj Set obj=Description.Create() 'To define the values obj("title").value="IE" obj("type").value="text" obj("html tag").value="INPUT" 'To set the value Browser("IE").Page("Yahoo").WebEdit(obj).Set "xyz" Can I refer the "obj" object for the three objects like Browser,page and webedit objects? If so how?
what is output value in QTP and how it can be used in automation testing
What is a reusable action?
how will load the object during runtime?
Hi How to retrieve data from web element line by line?
What is the use of Debug Viewer?
requirement is for combo box your expected value is str= "Denver.Frankfurt.London.Los Angeles.Paris.Portland.San Francisco.Seattle.Sydney.Zurich" you must get the text in combo box and need to compare them how
how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?
Can launch two instances of qtp on the same machine?
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
When using descriptive programming?
Tell some commonly used Excel VBA functions?
How does QTP identify an object?