/// <summary> ///Content frame for element handles referencing iframe nodes, or null otherwise. /// </summary> /// <returns>Resolves to the content frame</returns> public async Task <Frame> ContentFrameAsync() { var nodeInfo = await Client.SendAsync <DomDescribeNodeResponse>("DOM.describeNode", new DomDescribeNodeRequest { ObjectId = RemoteObject.ObjectId }).ConfigureAwait(false); return(string.IsNullOrEmpty(nodeInfo.Node.FrameId) ? null : await _frameManager.GetFrameAsync(nodeInfo.Node.FrameId)); }
/// <summary> ///Content frame for element handles referencing iframe nodes, or null otherwise. /// </summary> /// <returns>Resolves to the content frame</returns> public async Task <Frame> ContentFrameAsync() { var nodeInfo = await Client.SendAsync <DomDescribeNodeResponse>("DOM.describeNode", new Dictionary <string, object> { { MessageKeys.ObjectId, RemoteObject[MessageKeys.ObjectId] } }).ConfigureAwait(false); return(string.IsNullOrEmpty(nodeInfo.Node.FrameId) ? null : await _frameManager.GetFrameAsync(nodeInfo.Node.FrameId)); }