How can you test font size, type and color using QTP tool?
Answer Posted / venu
Set oWebElement = Browser("START").Page("START").WebElement
("ResizeText")
'Grabe the WebElement’s Runtime-Object’s CurrentStyle object
Set oStyle = oWebElement.Object
Msgbox oStyle.currentStyle.color
Msgbox oStyle.currentStyle.fontWeight
Msgbox oStyle.currentStyle.fontStyle
Msgbox oStyle.currentStyle.fontSize
This should work I think!
-Venu
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is the purpose of the err object in the vbscript language?
How to scroll down a page while recording in qtp. suggest me any method apart from low level recording.
Explain the extension .hta?
For a webbased application:- what should be code in expert veiw, for retrieving a single column name "username" from a server and checking whether exported "username" from datatable doesn't exist in server. suppose i have saved in excelsheet a username="gayatri" , which is exported, then checked for whether this username "gayatri" exist in server database or not ? if exist then allow to enter new username, which should be again checked for in loop , or else come out of loop and enter a distinct "username". plz let me have this answer in my id gayatrisahooin@hotmail.com
How do you declare a variable in vbscript?
What are string functions in vbscript?
Mention characteristics of sub procedures?
Which loop is used in case of arrays in the vbscript language?
How will you get the last occurrence of one string within another string using vbscript?
When does ‘on click of button’ event gets triggered in the vbscript language?
what is the use of QCUtil? explain with one example?
write a function to read the items from combobox of Flight reservation & save in excel (QTP)??
How will you get a string with the specified character the specified number of times in vbscript?
What is the difference between do until loop and do while loop?
Explain the scope of the variables using dim, public, and private keywords respectively.