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


Please Help Members By Posting Answers For Below Questions

What is the difference between vbscript and vba?

602


Capture the Unique label changes on google home page for I am feeling lucky button and save those label changes to Notepad Note: Using QTP

1875


How will you get the octal value of the given number in vbscript?

499


how to automatically update the sql server2005 database records when insert in vb6?

1486


When are redim statement and preserve keyword used in the vbscript language?

595






Why is error handling required?

574


Explain about operator precedence in vb script?

576


Mention what is vbscript?

598


What's the difference between vbscript and vb.net?

553


When does ‘on click of button’ event gets triggered in the vbscript language?

547


give me any information abou vb script books learn quckly

1657


How to make sure that items in a wintree are sorted al?

2356


How will you get the exponent of the given number in vbscript?

558


How will you reverse a string in vbscript?

620


Mention how to assign a date value to a variable?

590