Giter Site home page Giter Site logo

Comments (6)

davemo avatar davemo commented on May 6, 2024

Protractor already supports this functionality, https://github.com/juliemr/protractor/issues/27#issuecomment-20837485

from protractor.

juliemr avatar juliemr commented on May 6, 2024

I think this request is slightly different - this is for putting in pauses to allow activity to be observed, not just making sure the test doesn't time out too quickly.

I think a better way of putting this is "there should be a way to pause so one can interact with the site / debug". Angular scenario runner has this feature.

from protractor.

juliemr avatar juliemr commented on May 6, 2024

OK - this is now enabled by starting with the command line protractor debug <conf.js> and adding ptor.debugger() in the code where you'd like to pause. See 7a59479 - more documentation coming soon!

from protractor.

juliemr avatar juliemr commented on May 6, 2024

Documentation: https://github.com/angular/protractor/blob/master/docs/debugging.md

The ptor.debugger() method will be included in the 0.8.0 release later this week!

from protractor.

edrex avatar edrex commented on May 6, 2024

The original request is for a way to insert a brief pause in the test, rather than a way to pause for debugging purposes.

For example, I have a controller which persists the innerHtml of a contentEditable element to indexedDb after each key stroke. There is a timing-dependence in my tests which sometimes causes the last typed letter not to be saved. I'd like to introduce a 10ms pause in the test to ensure that the save occurs.

from protractor.

edrex avatar edrex commented on May 6, 2024

http://blog.activelylazy.co.uk/2012/01/29/testing-asynchronous-applications-with-webdriverwait/

this.

from protractor.

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.