How can you test font size, type and color using QTP tool?
Answers were Sorted based on User's Feedback
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 |
Answer / poorna
I am getting the following error
General run error.
Line (2): "Set oStyle = oWebElement.Object.CurrentStyle".
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / 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 |
after medical test,when will be the police verification
Which data type/types are supported by vbscript language and what are their specialties?
How are values assigned to string type and numeric type variables?
I have attended Anovatek Software QTP interview. They will give us computer and one web based application with QTP. We have to automate some records (already updated records or new records) using QTP Data driven testing. But we should use for loop? Can any one know how to do data driven testing using For loop?
Please Example programms on vbscript 1)writing functions and calling functions
I want to import the sheet from the Excel to the Datatable using VB Script. I used the Syntax as 'Datatable.ImportSheet "Filename","SourceSheet","Destinat ionSheet" Ex: Datatable.ImportSheet "D:\Data1.xls","Sheet1","Global" Qtp producing run time error,How I can solve the problem
How to Enter Values on the Command promt using VB script
What are the differences between sub procedures and function procedures?
Find Out Length of an array without using Ubound?
I have string like hp company.print tis like company hp.write a program in vbscripting
Why to add checkpoint in QTP What's the purpose of checkpoints & how to add it
how to automatically update the sql server2005 database records when insert in vb6?