Which statement below is true about Wait method?
-
Wait – makes a wait for the specified seconds with optional milliseconds
-
Wait – makes a wait for the specified seconds only
-
Wait – makes a wait for the specified seconds with mandatory milliseconds
-
None of the statements are true
The Wait method in QTP/UFT creates a pause for the specified number of seconds. While seconds are the primary parameter, the method can also accept optional milliseconds for more precise timing control, though this is less commonly used.
This refers to the scripting Wait method (e.g., in QTP/UFT or similar automation tools), whose signature accepts seconds as a required argument and milliseconds as an optional additional argument for finer-grained delay. So "specified seconds with optional milliseconds" correctly describes its full signature. "Seconds only" is wrong because milliseconds can also be supplied. "Mandatory milliseconds" is wrong because milliseconds is not required — omitting it is valid. Since one statement is accurate, "none of the statements are true" is also incorrect.