Seleno helps you write automated UI tests in the right way by implementing Page Objects and Page Components and by reading from and writing to web pages using strongly typed view models.
I have a question on stack overflow that has been unanswered for some time, there is a bug in the latest release.
My selenium tests are all failing on initalisation with this error. {"The system cannot find the file specified"}
My initialisation code is really simple:
public static class Host
{
private static readonly SelenoHost SelenoHost = new SelenoHost();
static Host()
{
Instance.Run(
configure => configure
.UsingLoggerFactory(new ConsoleFactory())
.WithWebServer(new InternetWebServer("http://localhost:9000/")));
Instance.Application.Browser.Manage().Window.Size = new Size(1500, 1000);
}
public static SelenoHost Instance => SelenoHost;
}
}
Firefox is installed in the default location, (C:\Program Files (x86)\Mozilla Firefox\firefox.exe) and is updated to the latest version (42).
I am using Windows 10 Operating System.
I am using studio 2015.1
Is there some way to specify this?
This used to work just fine, and I am not sure what action to take to resolve it.
If it helps, this is the stack trace.
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at OpenQA.Selenium.Firefox.Internal.Executable.LocateFirefoxBinaryFromPlatform()
at OpenQA.Selenium.Firefox.Internal.Executable..ctor(String userSpecifiedBinaryPath)
at OpenQA.Selenium.Firefox.FirefoxBinary..ctor(String pathToFirefoxBinary)
at TestStack.Seleno.Configuration.BrowserFactory.<FireFox>b__b() in c:\ConsoleBuildAgent\work\6625a30e8ee728ba\src\TestStack.Seleno\Configuration\BrowserFactory.cs:line 73
at TestStack.Seleno.Configuration.WebDriverBuilder`1.CreateWebDriver() in c:\ConsoleBuildAgent\work\6625a30e8ee728ba\src\TestStack.Seleno\Configuration\WebDriverBuilder.cs:line 88
at TestStack.Seleno.Configuration.BrowserFactory.FireFox() in c:\ConsoleBuildAgent\work\6625a30e8ee728ba\src\TestStack.Seleno\Configuration\BrowserFactory.cs:line 73
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at Autofac.Builder.RegistrationBuilder.<>c__DisplayClass1`1.<ForDelegate>b__0(IComponentContext c, IEnumerable`1 p) in c:\ConsoleBuildAgent\work\6625a30e8ee728ba\src\TestStack.Seleno\Configuration\Interceptors\SelenoReceivedException.cs:line 0
at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) in c:\ConsoleBuildAgent\work\6625a30e8ee728ba\src\TestStack.Seleno\Configuration\Interceptors\SelenoReceivedException.cs:line 0
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) in c:\ConsoleBuildAgent\work\6625a30e8ee728ba\src\TestStack.Seleno\Configuration\Interceptors\SelenoReceivedException.cs:line 0
at Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator) in c:\ConsoleBuildAgent\work\6625a30e8ee728ba\src\TestStack.Seleno\Configuration\Interceptors\SelenoReceivedException.cs:line 0
at Autofac.Core.Resolving.InstanceLookup.Execute() in c:\ConsoleBuildAgent\work\6625a30e8ee728ba\src\TestStack.Seleno\Configuration\Interceptors\SelenoReceivedException.cs:line 0
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) in c:\ConsoleBuildAgent\work\6625a30e8ee728ba\src\TestStack.Seleno\Configuration\Interceptors\SelenoReceivedException.cs:line 0
at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters) in c:\ConsoleBuildAgent\work\6625a30e8ee728ba\src\TestStack.Seleno\Configuration\Interceptors\SelenoReceivedException.cs:line 0```
I have a question on stack overflow that has been unanswered for some time, there is a bug in the latest release.
My selenium tests are all failing on initalisation with this error.
{"The system cannot find the file specified"}
My initialisation code is really simple:
Firefox is installed in the default location, (C:\Program Files (x86)\Mozilla Firefox\firefox.exe) and is updated to the latest version (42). I am using Windows 10 Operating System.
I am using studio 2015.1
Is there some way to specify this? This used to work just fine, and I am not sure what action to take to resolve it.
If it helps, this is the stack trace.