Skip to content

Need some explain #18

@zydjohnHotmail

Description

@zydjohnHotmail

Hello:
I don't quite understand your README.md file.
You mentioned "protocol definition file", I think, maybe you mean this file:
https://github.com/ChromeDevTools/devtools-protocol/blob/master/json/browser_protocol.json
From this file, I can see the latest browser_protocol is version 1.3.
But the code from this url is not working any more:
cyrus-and/chrome-remote-interface#10 (comment)
If I understand correctly, you need browser_protocol.json and js_protocol.json two Json files.
Then you can simply use the following code to download them. I hope the URLs can stay that way longer. #18 `class Program
{
private const string browser_protocol =
@"https://raw.githubusercontent.com/ChromeDevTools/devtools-protocol/master/json/browser_protocol.json";
private const string js_protocol =
@"https://raw.githubusercontent.com/ChromeDevTools/devtools-protocol/master/json/js_protocol.json";
private const string protocol_folder =
@"C:\Temp\ProtocolFiles";

static void Main()
{
WebClient webClient = new WebClient();
webClient.DownloadFile(browser_protocol, protocol_folder + "browser_protocol.json");
webClient.DownloadFile(js_protocol, protocol_folder + "js_protocol.json");
}
}
`
Please advice if I am correct in understanding your code.
Thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions