Skip to content

integration package to host Selenium´s WebDrivers inside custom applications

License

Notifications You must be signed in to change notification settings

OnSive/AppHost.Selenium

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AppHost.Selenium

integration package to host Selenium´s WebDrivers inside custom applications, easy peasy this working demo was inspired by this stackoverflow-question

Driver

Chromedriver

Download the chrome driver at https://chromedriver.storage.googleapis.com/index.html

WinForms

var service = ChromeDriverService.CreateDefaultService();
var driver = new ChromeDriver(service);
var form = new Form();
var host = new SeleniumHost();

form.Children.Add(host);
host.DriverService = service;

WPF

XAML

<Window x:Class="..."
    ...
    xmlns:sh="https://github.com/earloc/AppHost.Selenium">
    <sh:SeleniumHost x:Name="_SeleniumHost" />
</Window>

CodeBehind

var service = ChromeDriverService.CreateDefaultService();
var driver = new ChromeDriver(service);
_SeleniumHost.DriverService = service;

About

integration package to host Selenium´s WebDrivers inside custom applications

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%