Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Way to check if a table is visible
#1
Solved: 10 Years, 9 Months, 1 Week ago
I need a better way to check if a table is visible or not. Currently, if the WebTable is not visible, I open it. I determine which WebTable is needed by finding the "html id" but so far, my code always triggers.

My code is such:

Code:
NGNum = Browser("Wisdom").Page("Wisdom IA").Frame("parent").WebTable("innertext:=" & GroupName &".*", "visible:=True").WebTable("innertext:=" & "Document Type.*", "visible:=True").GetROProperty("html id")

If Not Browser("Wisdom").Page("Wisdom IA").Frame("parent").WebTable("innertext:=" & GroupName &".*").WebTable("innertext:=" & "Document Type.*", "visible:=True", "html id:=" & NGNum ).Exist(0) Then
                Browser("Wisdom").Page("Wisdom IA").Frame("parent").Link("name:=" & GroupName, "visible:=True").Click
Can anyone give me a better idea?

thx ;-)
Reply


Messages In This Thread
Way to check if a table is visible - by mv8167 - 02-03-2012, 11:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [UFT 12.52/VBScript] Test object exist, is visible and enabled before take an action sparkwanted 0 3,455 02-07-2017, 12:28 AM
Last Post: sparkwanted
Exclamation Retrieve the complete height and width of a browser beyond the visible part as wel learnQtptips 0 2,020 05-22-2013, 09:36 AM
Last Post: learnQtptips
  Disabled Webelement is showing up as Visible =True in GUI Spy Shwethareddy 3 3,632 11-07-2012, 02:45 PM
Last Post: Ankesh
Question Get total links visible on a webpage Sanjay_DP 5 6,095 02-16-2012, 10:30 PM
Last Post: Parke
  How to check for duplicate rows/items in table? Aestival 10 13,181 02-25-2011, 10:31 AM
Last Post: chandrashekhar_g

Forum Jump:


Users browsing this thread: 1 Guest(s)