Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Visible attribute
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
the below statement might thro tun time error if the object is not found in the application...(lets say position of the link is changed)

Code:
"If Browser("Wisdom").Page("Wisdom IA").Frame("parent").Link("name:="& ReportName, "Visible:=True", "abs_x:="& absX, "abs_y:="& absY).GetROProperty("visible") Then"

so..check if the obj is present before doing anything..

Code:
"If Browser("Wisdom").Page("Wisdom IA").Frame("parent").Link("name:="& ReportName, "Visible:=True", "abs_x:="& absX, "abs_y:="& absY).Exist(0) Then"

even if it seems to be an extra check, i feel it s a good practice..

once this is true...then you can do ur validation...
Reply


Messages In This Thread
Visible attribute - by mv8167 - 01-04-2012, 11:00 PM
RE: Visible attribute - by vIns - 01-05-2012, 12:22 AM
RE: Visible attribute - by mv8167 - 01-05-2012, 08:05 PM
RE: Visible attribute - by vIns - 01-06-2012, 05:50 AM
RE: Visible attribute - by mv8167 - 01-06-2012, 08:03 PM
RE: Visible attribute - by srikanthqtp - 01-06-2012, 10:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Exist and Visible Are True When Objects Aren't There - Is there A Better Way? zunebuggy 3 3,132 04-24-2018, 02:12 PM
Last Post: Ankur
  [UFT] [WPF] DataGrid: check if vertical and horizontal scrollbars are visible robertosalemi 0 2,410 07-13-2016, 06:33 PM
Last Post: robertosalemi
  Intermitent "Object not visible" error erodpr 5 3,504 01-14-2016, 10:55 AM
Last Post: vinod123
  Object properties are not visible suresh.tata 1 2,607 02-23-2014, 03:58 PM
Last Post: supputuri
Exclamation OBJECT NOT VISIBLE ERROR bala 2 4,215 07-26-2013, 03:12 PM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)