Get WebEdit FontSize

How to get "FontSize" of a "WebEdit"?

Questions by mukherjeesankha07

Showing Answers 1 - 5 of 5 Answers

Code
  1. Dim ctrlWebEl, objWebEl

  2. Set ctrlWebEl =Browser("Title:=.*Google.*").Page("Title:=.*Google.*")

  3. .Link("innertext:=Hindi","html tag:=A")

  4. Set objWebEl = ctrlWebEl.Object

  5.  

  6. sColor = objWebEl.currentStyle.color

  7. sBackgrColor = objWebEl.currentStyle.backgroundColor

  8. sFontSize = objWebEl.currentStyle.fontSize

  9. sFontStyle = objWebEl.currentStyle.fontStyle

  10. sFontFamily = objWebEl.currentStyle.fontFamily

  11. sFontWeight = objWebEl.currentStyle.fontWeight

  12. msgbox sColor&""&sBackgrColor&"  "&sFontSize&" "&sFontStyle&"   "&sFontFamily&" "&sFontWeight

  13.  


  Was this answer useful?  Yes

shubh

  • Aug 17th, 2011
 

set obj = Browser("Title:=Welcome: Mercury Tours").WebEdit("name:=userName").Object
MsgBox obj.currentstyle.fontsize
MsgBox obj.currentstyle.fontstyle

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions