How to get the background color of a weblist?

Answers were Sorted based on User's Feedback



How to get the background color of a weblist?..

Answer / 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

How to get the background color of a weblist?..

Answer / aparna

try the following statement:
Browser("micclass:=Browser").Page("micclass:=Page").Weblist
("name:=abc").Getroproperty("color")

Is This Answer Correct ?    2 Yes 4 No

How to get the background color of a weblist?..

Answer / venkata rajkumar b

a = Browser("title:=.*").Page("title:=.*").Weblist
("name:=abc").GetRoProperty("background color")

Msgbox a

' It Will Display background color Property Value

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More VB Script Interview Questions

What is the difference between for loop and while loop?

0 Answers  


Explain the arrays in vb script?

0 Answers  


Difference between dim,public and private variables in vb script?

0 Answers  


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

0 Answers   Ford,


Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?

0 Answers   Tech Mahindra,






i am having some basic knowledge in c and VB 6.0. i qtp i want to know how to write the codings. by recording it is generating lot of codings. for example i want to test the text box. senerio is text box should not accept alphabets if it accept alphabets we should return fail status if it get number we should return pass status. how to write coding in vb script please help me

0 Answers  


write a vb script to display factorial of a number using function

1 Answers  


Explain about constants in vb script?

0 Answers  


What is string concatenation function in VBScript?

2 Answers  


when you use For Loop, While..do, do..while? at what situations which loop will use.

1 Answers  


How do I check that the names in a weblist are correct e.g in flight application the names of item are Denver, paris,London, etc. How do I ensure the correct item is displayed from the list after doing item count ?

2 Answers   IBM,


How will you get a random number between 0 and 1 in vbscript?

0 Answers  


Categories