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?

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


Please Help Members By Posting Answers For Below Questions

What is the purpose of the err object in the vbscript language?

1111


How to scroll down a page while recording in qtp. suggest me any method apart from low level recording.

3028


Explain the extension .hta?

970


For a webbased application:- what should be code in expert veiw, for retrieving a single column name "username" from a server and checking whether exported "username" from datatable doesn't exist in server. suppose i have saved in excelsheet a username="gayatri" , which is exported, then checked for whether this username "gayatri" exist in server database or not ? if exist then allow to enter new username, which should be again checked for in loop , or else come out of loop and enter a distinct "username". plz let me have this answer in my id gayatrisahooin@hotmail.com

2206


How do you declare a variable in vbscript?

1076


What are string functions in vbscript?

1172


Mention characteristics of sub procedures?

1054


Which loop is used in case of arrays in the vbscript language?

968


How will you get the last occurrence of one string within another string using vbscript?

1197


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

1029


what is the use of QCUtil? explain with one example?

7063


write a function to read the items from combobox of Flight reservation & save in excel (QTP)??

2862


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

1027


What is the difference between do until loop and do while loop?

1074


Explain the scope of the variables using dim, public, and private keywords respectively.

1160