Micro Focus QTP (UFT) Forums

Full Version: test display value of englobing Span
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

on web appli, i try to check if a button is visible on screen.

This button is hidden by a sub level SPAN with a display=none style value, or is available if display=inline-block.
I was able to add the button to OR but how to check display value from upper SPAN

something like:


Code:
<span class="bla bla ..." [color=#FF4500]style="display: none;"[/color]> [color=#FF69B4]<== WHAT I WANT TO CHECK[/color]
   <span class="djfhjdfvjh"
       <span class="sdfsdfdf sdfgg"
             <[color=#32CD32]button id="myButton"[/color] class="dfjsdfj" type="button" .... style="-moz-user-select: none;">   [color=#FF69B4]<== THE BUTTON[/color]
             </button>
      </span>
   </span>
</span>
hi,

no ideas ?