Seleno и Chrome
Опитвам се да стартирам Хром с Селено
Browser Host class e
////
public static class BrowserHost
{
public static readonly SelenoHost Instance = new SelenoHost();
public static string RootUrl = @"http://localhost:60634/Article/List";
static BrowserHost()
{
Instance.Run("Blog", 60634, w => w.WithRemoteWebDriver(BrowserFactory.Chrome));
}
}
///
В съответният тест, драйвера го инициалирам с
//////
[Test]
public void NavigatetoBlog()
{
IWebDriver driver = BrowserHost.Instance.Application.Browser;
//////
Но теста фейла поради това че си търси Chrome.exe
//////
Message: System.TypeInitializationException : The type initializer for 'BartlettAreTheQAs.BrowserHost' threw an exception.
----> Autofac.Core.DependencyResolutionException : An exception was thrown while executing a resolve operation. See the InnerException for details. ---> Could not find configured web driver; you need to embed an executable with the filename chromedriver.exe. (See inner exception for details.)
----> TestStack.Seleno.Configuration.WebDriverNotFoundException : Could not find configured web driver; you need to embed an executable with the filename chromedriver.exe.
//////
Преисталирах всички packages .
Какъв е проблема . При вас получи ли се ?
Благодаря колега! И аз имах такъв проблем, но както ти казваш работи