Click or drag to resize

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
)

Parameters

waitTime
Type: SystemInt32
The time (in milliseconds) to wait until the browser loads the page.

Return Value

Type: String
The 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
ExceptionCondition
InvocationExceptionWill be thrown if invocation fails.
WebExceptionWill be thrown if there are network problems.
See Also