Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need some explain #18

Open
zydjohnHotmail opened this issue Feb 24, 2021 · 1 comment
Open

Need some explain #18

zydjohnHotmail opened this issue Feb 24, 2021 · 1 comment

Comments

@zydjohnHotmail
Copy link

zydjohnHotmail commented Feb 24, 2021

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,

@amaitland
Copy link

Chromium can provide a CDP definition in JSON form at runtime.

#17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants