Skip to content

Latest commit

History

818 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Optimus

Optimus is headless Web Browser fully implemented on .net.

Release notes

Downloads

Samples

  • Quick start

Create console application and paste the code:

usingSystem.Linq;usingKnyaz.Optimus;usingKnyaz.Optimus.Dom.Elements;usingConsole=System.Console;namespaceConsoleApplication1{classProgram{staticasyncvoidMain(string[]args){varengine=EngineBuilder.New().UseJint()// Enable JavaScripts execution..Build();// Builds the Optimus engine.//Request the web page.varpage=awaitengine.OpenUrl("http://google.com");//Get the documentvardocument=page.Document;//Get DOM itemsConsole.WriteLine("The first document child node is: "+document.FirstChild);Console.WriteLine("The first document body child node is: "+document.Body.FirstChild);Console.WriteLine("The first element tag name is: "+document.ChildNodes.OfType<HtmlElement>().First().TagName);Console.WriteLine("Whole document innerHTML length is: "+document.DocumentElement.InnerHTML.Length);Console.ReadKey();}}}

Projects structure

  • Knyaz.Optimus - The main assembly with implementation of web browser (without GUI and rendering).
  • Knyaz.Optimus.Tests - Acceptance tests library.
  • Knyaz.Optimus.JsTests - Simple Js tests.
  • Knyaz.Optimus.UnitTests - Pure unit tests.
  • Knyaz.Optimus.WfApp - Simple test application with DOM explorer and Log window.

License

Optimus is released under the MIT license.

About

Optimus is headless Web Browser fully implemented on .net.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages