Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
brewdente committed May 14, 2015
2 parents ef7aadd + cfad292 commit 1e08d83
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@
# ChromeDevTools
C# Library to interact with the Chrome Developer Tools.

```c#
chromeSession.Subscribe<Protocol.Page.DomContentEventFiredEvent>((o, e) =>
{
var domContentEvent = (Event<DomContentEventFiredEvent>)e;
Console.WriteLine("DomContentEvent: " + domContentEvent.Params.Timestamp);
});

chromeSession.SendAsync(new NavigateCommand
{
Url = "http://www.google.com"
}).Wait();
```

## About
This library is C# API that enabled interaction with the Chrome Developer Tools. When the Chrome Developer Tools are started, the chrome process starts a server. The Chrome Developer Tools UI communicates with this server via Web Sockets. So can you. In fact, everything in the Chrome Developers Tools UI is available to you via JSON, by default. This library makes it available to you in C#.

Expand Down Expand Up @@ -55,4 +68,4 @@ If you didn't read the entire README (I don't blame you, I wouldn't), I've inclu
* Here's what the Chrome Team has to say about the Developer Tools protocol (it's not much)
* [https://developer.chrome.com/devtools/docs/debugger-protocol](https://developer.chrome.com/devtools/docs/debugger-protocol)
* Some cool apps that other developers have built using the Chrome Debugging Protocol
* [https://developer.chrome.com/devtools/docs/debugging-clients](https://developer.chrome.com/devtools/docs/debugging-clients)
* [https://developer.chrome.com/devtools/docs/debugging-clients](https://developer.chrome.com/devtools/docs/debugging-clients)

0 comments on commit 1e08d83

Please sign in to comment.