Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need to get background color of a webelement whose class is iframe
#1
Not Solved
I used the following script to retrieve the background color:
Code:
MsgBox Browser.Page.Link.WebElement.Object.currentStyle.backgroundColor

But, it is displaying only "Transparent". The link's class name is iFrame.
I changed it to:
Code:
MsgBox Browser.Page.WebElement.Object.currentStyle.backgroundColor

Now the background is displayed as #fff. But the actual background color is orange.

Please suggest.
Reply


Messages In This Thread
Need to get background color of a webelement whose class is iframe - by sundari_msls - 01-02-2012, 04:38 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Object Class Name has changed in New OS(2012 R2) Raj Aryan Singh 0 710 12-12-2019, 03:57 PM
Last Post: Raj Aryan Singh
  Using Variables for calling a method in a class chitu576 0 1,650 12-05-2014, 12:31 AM
Last Post: chitu576
  How to identify color name using QTP Sourabh146 1 3,892 08-02-2013, 11:48 AM
Last Post: basanth27
  QTP locks up removes desktop background dj_wires 0 1,803 10-15-2012, 09:44 PM
Last Post: dj_wires
  Class not registered error razluv 3 6,591 09-14-2011, 11:43 AM
Last Post: SailajaKavi

Forum Jump:


Users browsing this thread: 2 Guest(s)