Fahim Aslam Bhatti
Fahim Aslam Bhatti

Reputation: 90

Does 'Exist' method in VBScript(QTP) declare the existence of

Browser("Online Exchange login").Page("Online Exchange login").Exist(10)

Following lines are not included in the source code:

My question is : Will Exist(10) method, in above line of code, verifies the existence of all Child Objects (if any) of Page("Online Exchange login") object before declaring its existence?

Upvotes: 1

Views: 5278

Answers (2)

Priyadarshi Kunal
Priyadarshi Kunal

Reputation: 578

No Exists method will check for the object on which it is called and not its child objects. In this case only the page object will be checked for existence.

Browser("Online Exchange login").Page("Online Exchange login").Exist(10)

In this case note that QTP waits for 10 sec + Browser Sync Time

Upvotes: 1

Motti
Motti

Reputation: 114705

No, Exist checks to see if there is currently a control that matches the description in the test object on which it was called. It does not check child objects.

Further reading.

Upvotes: 1

Related Questions