How to get the background color of a weblist?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
What is the difference between for loop and while loop?
Explain the arrays in vb script?
Difference between dim,public and private variables in vb script?
how to set one column as primary key in QTP and fetch values accordingly
Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?
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
write a vb script to display factorial of a number using function
Explain about constants in vb script?
What is string concatenation function in VBScript?
when you use For Loop, While..do, do..while? at what situations which loop will use.
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 ?
How will you get a random number between 0 and 1 in vbscript?