Skip to content

integration package to host Selenium´s WebDrivers inside custom applications

License

Notifications You must be signed in to change notification settings

earloc/AppHost.Selenium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 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

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