Skip to content

ImplicitlyWait method does not exist #263

Open

Description

@boeschti

The wrong method is used in https://github.com/TestStack/TestStack.Seleno/search?utf8=%E2%9C%93&q=implicitly&type=

I am using Selenium.WebDriver 3.7.0

The method is no longer supported by Selenium, rather use: driver.Manage().Timeouts().ImplicitWait

Exception:
When using InternetExplorer webdriver the following error occured:

System.TypeInitializationException: The type initializer for 'MyNamespace.Host' threw an exception. ---> Autofac.Core.DependencyResolutionException: An exception was thrown while executing a resolve operation. See the InnerException for details. ---> Method not found: 'OpenQA.Selenium.ITimeouts OpenQA.Selenium.ITimeouts.ImplicitlyWait(System.TimeSpan)'. (See inner exception for details.) ---> System.MissingMethodException: Method not found: 'OpenQA.Selenium.ITimeouts OpenQA.Selenium.ITimeouts.ImplicitlyWait(System.TimeSpan)'.
at TestStack.Seleno.Configuration.AppConfigurator.b__11_1(IActivatedEventArgs1 a) at Autofac.Core.Resolving.InstanceLookup.Complete() in C:\ConsoleBuildAgent\work\6625a30e8ee728ba\src\TestStack.Seleno\Extensions\EnumerableExtensions.cs:line 0 at Autofac.Core.Resolving.ResolveOperation.CompleteActivations() in C:\ConsoleBuildAgent\work\6625a30e8ee728ba\src\TestStack.Seleno\Extensions\EnumerableExtensions.cs:line 0 at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable1 parameters) in C:\ConsoleBuildAgent\work\6625a30e8ee728ba\src\TestStack.Seleno\Extensions\EnumerableExtensions.cs:line 0
at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable1 parameters) in C:\ConsoleBuildAgent\work\6625a30e8ee728ba\src\TestStack.Seleno\Extensions\EnumerableExtensions.cs:line 0 --- End of inner exception stack trace --- at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable1 parameters) in C:\ConsoleBuildAgent\work\6625a30e8ee728ba\src\TestStack.Seleno\Extensions\EnumerableExtensions.cs:line 0
at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable1 parameters, Object& instance) in C:\ConsoleBuildAgent\work\6625a30e8ee728ba\src\TestStack.Seleno\Extensions\EnumerableExtensions.cs:line 0 at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable1 parameters) in C:\ConsoleBuildAgent\work\6625a30e8ee728ba\src\TestStack.Seleno\Extensions\EnumerableExtensions.cs:line 0
at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable1 parameters) in C:\ConsoleBuildAgent\work\6625a30e8ee728ba\src\TestStack.Seleno\Extensions\EnumerableExtensions.cs:line 0 at TestStack.Seleno.Configuration.SelenoApplication..ctor(IContainer container) in C:\ConsoleBuildAgent\work\6625a30e8ee728ba\src\TestStack.Seleno\Configuration\SelenoApplication.cs:line 36 at TestStack.Seleno.Configuration.AppConfigurator.CreateApplication() in C:\ConsoleBuildAgent\work\6625a30e8ee728ba\src\TestStack.Seleno\Configuration\AppConfigurator.cs:line 49 at TestStack.Seleno.Configuration.SelenoHost.CreateApplication(Action1 configure) in C:\ConsoleBuildAgent\work\6625a30e8ee728ba\src\TestStack.Seleno\Configuration\SelenoHost.cs:line 104
at TestStack.Seleno.Configuration.SelenoHost.Run(Action`1 configure) in C:\ConsoleBuildAgent\work\6625a30e8ee728ba\src\TestStack.Seleno\Configuration\SelenoHost.cs:line 0
at MyNamespace.Host..cctor()

Activity

  1. lasaro-dumer commented on Nov 23, 2017

    @lasaro-dumer

    Hi, this happened to me too

    Seleno is not synced with Selenium, to resolve the issue you will need to use Selenium.* 2.53.0

  2. boeschti commented on Nov 23, 2017

    @boeschti
    Author

    It seems Seleno works up to including version 3.5.1 of Selenium Webdriver. All the functions I used up until now work with 3.5.1. Have't tried all features yet of course.

  3. NathanReginato commented on Jan 18, 2018

    @NathanReginato

    I'm having this issue as well. Using a lower version of Selenium fixed the problem.

  4. KarenSouthwick commented on Oct 16, 2018

    @KarenSouthwick

    Thanks, that helped me too!

  5. alohaninja commented on Mar 7, 2019

    @alohaninja

    Seleno 3.6.0 seems to be the latest version working for me - this repo seems to be abandoned. 😮

    • Are there any active maintainers for this solution?
      image

    • What else are people using to keep current with Selenium.WebDriver

  6. renklapper commented on Mar 12, 2019

    @renklapper

    @alohaninja: I am wondering same thing. I think library is very promising after I look at source code. But, as you mention, little activity in repository.

    @MehdiK, @mwhelan, @robdmoore: Any comments?

  7. MehdiK commented on Mar 17, 2019

    @MehdiK
    Member

    Thanks for the comments @alohaninja and @renklapper. TBH I haven't spent much time on Seleno in the past couple of years for a few reasons. The main reason is that I now have two kids and little to no time for OSS :) :(

    Personal reason aside, Seleno was put together in the age of ASP.Net MVC websites. The power and beautify of the framework is its deep integration into ASP.Net MVC. I haven't personally done or seen anyone doing pure ASP.Net MVC web applications lately. In the past few years, I've been using headless browsers for UI testing SPA applications, and something like Seleno doesn't help all that much.

    Do you use Seleno and if yes, why and how? Thanks.

  8. renklapper commented on Mar 18, 2019

    @renklapper

    @MehdiK: We have sort of "legacy" Asp.Net MVC application and we are required to write some UI tests. After looking around, this was best solution for UI tests with Asp.Net MVC application.

    We actually forked this and upgraded to newest version of Asp.Net MVC, Selenium and other nuget packages. I could open PR to this branch, if you guys are willing to merge and release new version.

  9. alohaninja commented on Mar 21, 2019

    @alohaninja

    likewise @renklapper - we have a "legacy" MVC app still using razor views that we still rely on this toolchain for daily. would love to see it get some upgrades. I'm happy to review and commit back any fixes for bugs @MehdiK - totally understand the family commitments. Congrats! 🙌

  10. MehdiK commented on Mar 23, 2019

    @MehdiK
    Member

    Thanks for your responses @renklapper and @alohaninja. This confirms my suspicion.

    Seleno was a great idea and it was implemented relatively nicely. The problem is that it was implemented to support an architecture that went out of favor right after Seleno was born.

    I know very few people who are still using Seleno and considering that low use, I have very little incentive to maintain the framework to be perfectly honest with you. That said, I'm quite proud of what we did here and don't want to see it go to waste.

    Thanks for volunteering @alohaninja. Using the framework yourself, you are a lot better positioned to maintain it. I'm happy to add you in as a contributor so you can keep it alive. Knowing there are still a few active users, should you decide to do this, I have some expectations :)

    • You need to keep the quality high.
    • You need to maintain semantic versioning. If you are going to release a breaking change, bump the major and communicate the change very clearly.
    • If you release a buggy version, you need to be responsive to bugs.
    • You need to be respectful towards the end users and the community.

    What do you think?

  11. wmcainsh commented on Mar 24, 2019

    @wmcainsh

    Same as the guys above, I still use Seleno and would love to see it maintained. Happy to help if I can but I don't have a lot of spare time just now.

  12. SvenAelterman commented on Sep 11, 2019

    @SvenAelterman

    Here is my attempt, a fork. There should be no breaking changes that I am aware of. It simply makes the minimal necessary changes to make Seleno work with Selenium 3.141 and the related other libraries, including NUnit 3 as the test runner.

    I took what I think is a disciplined approach. You can see a whole commit chain where I gradually introduced more changes after I got the initial set of tests to run.

    I used VS 2019 for this. I had to add the NUnit 2 and later NUnit 3 extension, which I normally don't use. There are still some things that need to be improved, including

    • updating the .nuspec and PowerShell files
    • adding a .vsext to make it easier to remember to install NUnit 3

    Key to this effort was that while I updated the two samples to .NET 4.7.2, I did not update TestStack.Seleno to target a newer framework version or ASP.NET MVC version. That way, it should continue to work with the older frameworks.

  13. SvenAelterman commented on Sep 18, 2019

    @SvenAelterman

    @MehdiK or @mwhelan Any chance to review that PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions