How can you test font size, type and color using QTP tool?
Answer Posted / dharit shah
Set oWebElement = Browser("START").Page("START").WebElement
("ResizeText")
'Grabe the WebElement’s Runtime-Object’s CurrentStyle object
Set oStyle = oWebElement.Object.CurrentStyle
Msgbox oStyle.Color
Msgbox oStyle.fontWeight
Msgbox oStyle.fontStyle
Msgbox oStyle.fontSize
| Is This Answer Correct ? | 8 Yes | 5 No |
Post New Answer View All Answers
How to make sure that items in a wintree are sorted al?
1.I want to establish connection with excel and also want to fetch the data using SQL queries. 2.the code should be written in such a way that in future if I want to migrate from excel to MS excess database , then there should be minimal changes.
I am working on QTP, got struck in one place.. In my application depending upon configuration WebEdit count is increasing/ decreasing.. how to get these webedits..
How to take whole text output from screen of Bitmap Application.
Explain the scope of the variables using dim, public, and private keywords respectively.
Mention characteristics of sub procedures?
Explain How do you create a recordset object in vbscript?
How can you create an object in vbscript?
What is the difference between a dictionary and an array?
Explain what is loose binding? Why is it not a good practice to use it?
Why to use option explicit in vb script?
What is the extension of the vbscript file?
What is the use of the recordset object and which statement is used to create such an object?
How to Import data from a file (file is on the desktop) to the data table
How you can call vbscript functions?