IWebPageWait Method (Int32) |
Pauses the test execution until the web page is downloaded, or until the specified timeout elapses.
Namespace:
SmartBear.TestLeft.TestObjects.Web
Assembly:
SmartBear.TestLeft (in SmartBear.TestLeft.dll) Version: 14.70.237.11 (14.70.237.11)
Syntax string Wait(
int waitTime
)
Function Wait (
waitTime As Integer
) As String
Dim instance As IWebPage
Dim waitTime As Integer
Dim returnValue As String
returnValue = instance.Wait(waitTime)
String^ Wait(
int waitTime
)
Parameters
- waitTime
- Type: SystemInt32
The time (in milliseconds) to wait until the browser loads the page.
Return Value
Type:
StringThe URL of the page or resource that was loaded last on the page. If the web page does not contain frames and the page was loaded successfully,
the Wait method returns the page's URL. If the page contains frames, the method returns the URL of the page that was last loaded in the frame.
If the loading was not successful or the page had not finished loading before the WaitTime timeout elapsed, the method returns an empty string.
Exceptions See Also