How can I get font size from a object
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2023
11:55 AM
08-09-2023
11:55 AM
How can I get font size from a object
There is a button that has "submit" text in it. I need to get the font size of this text "submit".
I am not able to find any relative property or method. Can anyone please help me with the same?
Solved! Go to Solution.
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2023
12:31 PM
08-09-2023
12:31 PM
Is this a desktop or web application? If it's web application then you should be able to get the CSS attribute. Desktop app will not usually reveal this information.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2023
10:27 PM
08-09-2023
10:27 PM
@rraghvani Thanks...your suggested page help me
Below is the code that works.
Set page = Sys.Browser("edge").Page("*")
Set foundObject= page.Find("idStr", "idValue", 100)
Set style = page.contentDocument.defaultView.getComputedStyle(foundObject, "")
Log.Message style.fontSize
