with the below simple script you will be able to get font, item name and font color of weblist items.
set Web_list_Items= Browser("abc").Page("abc").WebList("abc").Object.all.tags("option")
For each element in Web_list_Items
Set style = element.currentstyle
Item_text_color=style.Color
Item_text=element.text
msgbox Item_text_color
msgbox Item_text
Next
set Web_list_Items= Browser("abc").Page("abc").WebList("abc").Object.all.tags("option")
For each element in Web_list_Items
Set style = element.currentstyle
Item_text_color=style.Color
Item_text=element.text
msgbox Item_text_color
msgbox Item_text
Next
No comments:
Post a Comment