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 are class variables?
Explain what is loose binding? Why is it not a good practice to use it?
can anyone tell me the procedure of interview held in applabs
What are class events?
Explain the constants in vbscript?
Mention if qtp generates vbscript code as we record actions, can't it possible to directly write using vbscript code when qtp does the same thing too?
How will you convert a string to upper case string using vbscript?
Explain the filter expression?
Explain about the functionality of vb script?
When are redim statement and preserve keyword used in the vbscript language?
Mention the environments where vbscript could be run?
Hi All, I am facing one problem in QTP. There is link object in my application that exist in the Frame in mozilla firefox. Click event on that object is not working but once the frame is enabled/activated then click event works fine.But the frame does not have the activate property. This problem is coming in firefox only. Regards
How will you get the last occurrence of one string within another string using vbscript?
What are the 2 ways in which a variable can be declared in the vbscript language?
How can the spaces from the string be removed?