Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How can you test font size, type and color using QTP tool?

Answers were Sorted based on User's Feedback



How can you test font size, type and color using QTP tool?..

Answer / 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

How can you test font size, type and color using QTP tool?..

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

How can you test font size, type and color using QTP tool?..

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

Post New Answer

More VB Script Interview Questions

after medical test,when will be the police verification

0 Answers   IBM,


Which data type/types are supported by vbscript language and what are their specialties?

0 Answers  


How are values assigned to string type and numeric type variables?

0 Answers  


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?

0 Answers  


Please Example programms on vbscript 1)writing functions and calling functions

2 Answers   CIL, TCS,


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

1 Answers  


How to Enter Values on the Command promt using VB script

0 Answers  


What are the differences between sub procedures and function procedures?

0 Answers  


Find Out Length of an array without using Ubound?

1 Answers  


I have string like hp company.print tis like company hp.write a program in vbscripting

1 Answers   HP,


Why to add checkpoint in QTP What's the purpose of checkpoints & how to add it

2 Answers  


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

0 Answers  


Categories