내가 FluentAutomationFluentAutomation 및 셀레늄 2.33.0.0
'System.IO.FileLoadException' 이 FluentAutomation.Core에서 발생 유형의 첫 번째 예외로 테스트를 실행하려고 할 때 다음과 같은 예외를 받고 있어요 .DLL
는파일이나 어셈블리 'WebDriver, 버전 = 2.25.1.0, 중립 문화 =, PublicKeyToken = 1c2bd1631853048f'또는 종속성 중 하나를로드 할 수 없습니다. 위치한 어셈블리의 매니페스트 정의가 과 일치하지 않습니다. (HRESULT에서 예외 : 0x80131040) 여기서
는 FluentAutomation.SeleniumWebDriver.b__0 (TinyIoCContainer 용기)에서 스택 트레이스
의 FluentAutomation.FluentTest.get_I()에서
나는 nuget에서 최신 버전의 셀레늄을 얻었지만 fluentautomation dll에서 하드 코드 된 필수 버전이있는 것처럼 보입니다.
FluentAutomation 정말 멋져서 내 프로젝트에서 사용할 수 있다는 점이 좋습니다.
@stirno 도와주세요!
FluentAutomation and selenium 2.32.1.0 내 문제에 확실히 비슷하지만 Nuget의 최신 ChromeDriver을 다운로드 한 및 규정 내 bin 디렉토리로 복사하고 있습니다.
나는 또한에 here에서 최신 및 복사 있음을 다운로드하지 않는다. 나는 또한 그래서 여기 흐름 사양 사용하고내 설정의 기쁨을이 도움이 경우에 시도했습니다
...
[Binding]
public class WebScenario : FluentAutomation.FluentTest
{
private readonly IObjectContainer objectContainer;
public WebScenario(IObjectContainer objectContainer)
{
this.objectContainer = objectContainer;
FluentAutomation.Settings.ScreenshotPath = @"C:\Work\Temp";
FluentAutomation.Settings.ScreenshotOnFailedExpect = false;
FluentAutomation.Settings.ScreenshotOnFailedAction = false;
FluentAutomation.Settings.DefaultWaitTimeout = TimeSpan.FromSeconds(1);
FluentAutomation.Settings.DefaultWaitUntilTimeout = TimeSpan.FromSeconds(30);
FluentAutomation.Settings.MinimizeAllWindowsOnTestStart = true;
}
[BeforeScenario("Web")]
public void BeforeScenario()
{
FluentAutomation.SeleniumWebDriver.Bootstrap(FluentAutomation.SeleniumWebDriver.Browser.Firefox);
objectContainer.RegisterInstanceAs<INativeActionSyntaxProvider>(I);
}
}
I
이
PageNavigator
객체
내가라면으로 주입 처음 액세스 할 때
예외 발생 이 문제가 처리해야처럼 nterested 당신이 github
에서 정말 간단한 소스 예제를 다운로드 할 수 있습니다 그래서 내가 GitHub의에서 FluentAutomation 소스를 다운로드 ...이 작업을 가지고 최신 DLL을 구축하고 그들을 떨어졌다가. 보이는 다음 릴리스에서와 : D
일했다. 이전에 보았던 것과 약간 다른 것 같습니다. 새로운 NuGet 버전도 이번 주말에 나옵니다. – stirno