Multiple choice technology testing

Which statement below is true about Wait method?

  1. Wait – makes a wait for the specified seconds with optional milliseconds

  2. Wait – makes a wait for the specified seconds only

  3. Wait – makes a wait for the specified seconds with mandatory milliseconds

  4. None of the statements are true

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The Wait method in QTP/UFT (inherited from VBScript) accepts seconds as a required parameter and milliseconds as an optional parameter. The syntax is Wait(seconds, milliseconds), where milliseconds can be omitted. Option B incorrectly states milliseconds are not supported, while option C incorrectly states they are mandatory.