Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to check visibility of an Object
#1
Not Solved
Hi All,
Please help me to resolve my following problem.
On my application I have an Object(Next button), its always available on the page in visible or hidden mode.
Now if I put the condition:
Code:
if browser().Page().WebButton().Exist then
    browser().Page().WebButton().Click
Else
Reporter.ReportEvent micFail, "Next button not exist", "Fail"
End If

but my first condition is always true and QTP always click Next button even though its in hidden mode.

I dont want to click this button when its in hidden mode, Please can you tell me how can I resolve my this issue.

Thanks All,
Reply


Messages In This Thread
How to check visibility of an Object - by ritugoyal - 08-03-2009, 12:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to force QTP to Check for trigger through Recovery Object ? Sumit Maru 0 3,196 02-21-2011, 02:44 PM
Last Post: Sumit Maru
  Check if the Object is Empty/Null manojith1984 1 13,356 05-20-2009, 10:44 AM
Last Post: manojith1984
  QTP 9.5 Object Repository merge tool not merging the Check Point objects govqa 0 3,299 05-18-2009, 07:11 PM
Last Post: govqa
  How to check an object is NOT there? alecjcook 2 3,234 05-13-2008, 02:10 AM
Last Post: niranjan

Forum Jump:


Users browsing this thread: 1 Guest(s)