Giter Club home page Giter Club logo

Comments (6)

bbaia avatar bbaia commented on June 2, 2024

Did you tried using WebDriverWait from Selenium.WebDriver.Support package ?

var wait = new WebDriverWait(ngDriver.WrappedDriver, TimeSpan.FromSeconds(15));
wait.Until(ExpectedConditions.UrlToBe("http://myapp.net/home/"));

from protractor-net.

disophisis avatar disophisis commented on June 2, 2024

That is an option for sure. What's happening here is that there's a race condition, it appears. WaitForAngular() executes a script against the page which calls getTestability(element). getTestability() throws an error if the app hasn't been bootstrapped.

The best way to attack this would seem to be either at the WaitForAngular() method or lower. I ended up pulling the code and adding a custom check in WaitForAngular() to make sure the app is bootstrapped before that method can proceed. I think it is a little expensive though because it uses findelement to check the element for the ng-cloak attribute. It would be nice if there was some query one could do to determine if the app is bootstrapped. If there isn't, I can proceed with my custom check.

from protractor-net.

bbaia avatar bbaia commented on June 2, 2024

Can you try using the latest version (0.10) ?

from protractor-net.

disophisis avatar disophisis commented on June 2, 2024

I have updated and tried it; there are quite a few more errors, this one specifically:

javascript error: angular never provided resumeBootstrap

This is application is using angular 1.5.11.

from protractor-net.

bbaia avatar bbaia commented on June 2, 2024

OK, it detects the application is not bootstrapped.
Protractor does not support manual bootstrap yet.

Use WebDriverWait for now

from protractor-net.

disophisis avatar disophisis commented on June 2, 2024

Sweet I will keep an eye on this issue you linked. I think I will also close this for now.

Thanks a lot!

from protractor-net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.