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

Which in-built function is used to format the number in the vbscript language?

573


How will you convert a string to upper case string using vbscript?

548


Plzzzzzzz can any one tell me which is the best institute in hyderabad for learing VBScript. plz do answer guys its urgent plzzzzzzz. thanks in advance.

1717


If a calulator having 3 buttons (of any number)in 3 of them one is not working properly due to which answer is wrong always. write a script to find out which button is not working properly ?

1551


Explain the .wsf files?

527






Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)

3181


How to find the font in qtp. Scenario:After entering the username and passwd you will be navigate into the "welcome:Username" page.Now I want to extarct font for this message.

1737


give me any information abou vb script books learn quckly

1655


When to use function procedures and what are its characteristics?

547


How to delete a cookie using vbscript?

545


What is the technology used by vb script?

537


How to create a function in vbscript?

579


Mention how you can call vbscript functions?

577


What are the valid scopes of a variable in vbscript?

604


How will you get a string with the specified character the specified number of times in vbscript?

569