Method LoadUrl
- Namespace
- DotNetBrowser.Frames
- Assembly
- DotNetBrowser.dll
LoadUrl(string)
Navigates the frame to a resource identified by the given url
.
Task<NavigationResult> LoadUrl(string url)
Parameters
url
stringThe URL of the resource to load. Cannot be null, empty or contain only white space.
Returns
- Task<NavigationResult>
A task that represents the asynchronous loading operation. The NavigationResult indicates if the loading operation has been completed, stopped or failed. The task throws a TimeoutException if the loading operation hasn't been completed within a default timeout (100 seconds).
Exceptions
- ArgumentException
thrown when
url
is null, empty or contain only white space.- ObjectDisposedException
The IFrame object has already been disposed.
LoadUrl(string, TimeSpan)
Navigates the frame to a resource identified by the given url
.
Task<NavigationResult> LoadUrl(string url, TimeSpan timeout)
Parameters
url
stringThe URL of the resource to load. Cannot be null, empty or contain only white space.
timeout
TimeSpanThe timeout.
Returns
- Task<NavigationResult>
A task that represents the asynchronous loading operation. The NavigationResult indicates if the loading operation has been completed, stopped or failed. The task throws a TimeoutException if the loading operation hasn't been completed within the specified
timeout
.
Exceptions
- ArgumentException
thrown when
url
is null, empty or contain only white space.- ObjectDisposedException
The IFrame object has already been disposed.