Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to validate color of image object in a web page
#4
Solved: 10 Years, 9 Months, 1 Week ago
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:

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
Reply


Messages In This Thread
RE: How to validate color of image object in a web page - by sshukla12 - 06-12-2012, 03:09 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Can QTP handle slick grid table in a web page qtplearner88 2 4,300 10-01-2019, 10:44 AM
Last Post: shilpi952
  Child Object Not able to identified in Web Menu Link noor 0 1,673 01-21-2018, 04:44 PM
Last Post: noor
  DP Web Browser/Page issues rstimers 1 2,315 08-14-2015, 12:37 PM
Last Post: venkatesh9032
  webfile web object not identified at runtime in a java application saila123 1 2,665 02-11-2015, 08:23 PM
Last Post: Kirill
  How to validate a format of an alphanumeric string PrateepKaraval 2 5,815 11-08-2014, 10:26 AM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)