06-12-2012, 03:09 PM
Hi,
I have 1 doubt, did these are images of different color or there is one object whose color will get changed as per status.
if color is changing then u can refer the below code:
if these are different objects of different color then add these objects in OR with unique properties and use if conditions to identify which object is displayed and proceed further.
Regards,
Sankalp
I have 1 doubt, did these are images of different color or there is one object whose color will get changed as per status.
if color is changing then u can refer the below code:
Code:
Set ctrlWebEl = Browser("Welcome to Gmail").Page("Welcome to Gmail").WebElement("Welcome to Gmail")
Set objWebEl = ctrlWebEl.Object
sColor = objWebEl.currentStyle.color
'or u can use
sBackgrColor = objWebEl.currentStyle.backgroundColor
if these are different objects of different color then add these objects in OR with unique properties and use if conditions to identify which object is displayed and proceed further.
Regards,
Sankalp