How to get the background color of a weblist?

Answer Posted / prathyusha

It will work for internet explorer.
Browser("Name:=.*").Page("Title:=.*").weblist("name:=somename").object.currentstyle.color
But it displays hex color
For chrome
Browser("Name:=.*").Page("Title:=.*").weblist("name:=somename").object.style.color

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain some uses of vb script?

556


What is dictionary object in vbscript? Explain?

628


Plzzzzzzz can any one tell me which is the best institute in hyderabad for learing VBScript. plz do answer guys its urgent plzzzzzzz. thanks in advance.

1729


how to set one column as primary key in QTP and fetch values accordingly

1827


What purpose does ‘on error resume next’ serves?

553






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

1489


what is resorceallocation

1776


In what way program "hello world" you can write in vbscript?

655


Is vbscript a case-sensitive or case-insensitive?

754


What is the event handling in vbscript?

565


wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......

1495


i wrote vbscripit code in notepad i got error i am in learning stage if u ps tell me what wrong in my code my error is "object required descriptive at line one run time error"and my code is "set usernameobj=Descriptive.Create() usernameobj( "name").value="Username" set passwordobj=Descriptive.Create() passwordobj("name").value="password" set signinobj=Descriptive.Create() signinobj("name").value="sigin" browser("gmail").page("gmail").WebEdit("usernameobj").set ("enter username") Browser("gmail").Page("gmail").WebEdit("passwordobj").Set secure.Crypt.Encrypt("enter password") browser("gmail").page("gmail").WebButton("siginobj").click

1421


Explain a few date functions in vbscript

558


How will you convert a string to lower case string using vbscript?

561


How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'

3277