You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+18
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,24 @@ var config = Configuration.Default
33
33
34
34
in the previous example `MyConsoleLogger` refers to a class implementing the `IConsoleLogger` interface. Examples of classes implementing this interface are available in our [samples repository](https://github.com/AngleSharp/AngleSharp.Samples).
35
35
36
+
## Extension Methods
37
+
38
+
This plugin also delivers some extension methods to be used together with elements from AngleSharp, e.g., `IDocument` or `IElement`.
39
+
40
+
For instance, the following waits until a stable point has been reached (and the document is fully available):
41
+
42
+
```cs
43
+
varcontext=BrowsingContext.New(config);
44
+
vardocument=awaitcontext.OpenAsync(address)
45
+
.WaitUntilAvailable();
46
+
```
47
+
48
+
Scripts can also be run in the context of the document, where the result of the last expression is returned:
The repository contains DOM bindings for the *Jint* JavaScript engine. *Jint* is fully ECMAScript 5 compatible and provides the basis for evaluating JavaScripts in the context of the AngleSharp DOM representation.
0 commit comments