navigate method
Navigates current page to the given URL.
url
URL to navigate the page to.
referrer
Referrer URL.
transitionType
Intended transition type.
frameId
Frame id to navigate, if not specified navigates the top frame.
referrerPolicy
Referrer-policy used for the navigation.
Implementation
Future<NavigateResult> navigate(String url,
{String? referrer,
TransitionType? transitionType,
FrameId? frameId,
ReferrerPolicy? referrerPolicy}) async {
var result = await _client.send('Page.navigate', {
'url': url,
if (referrer != null) 'referrer': referrer,
if (transitionType != null) 'transitionType': transitionType,
if (frameId != null) 'frameId': frameId,
if (referrerPolicy != null) 'referrerPolicy': referrerPolicy,
});
return NavigateResult.fromJson(result);
}