Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9240897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:16:03+00:00 2026-06-18T08:16:03+00:00

I am looking at how to test a knockout based website via an automated

  • 0

I am looking at how to test a knockout based website via an automated testing tool like Selenium or PhantomJS. The general flow of the tests is:

  1. Do something (e.g., click button)
  2. Check to see if the success side effect has occurred (e.g., span text updated)
  3. Repeat

The problem is #2. Knockout updates do not occur immediately, so I do the following:

  1. Check for success condition every 100ms
  2. If 5 seconds have passed, fail.

This sucks, as I either have to make the timeout long enough that knockout will always be complete, or live with spurious failures.

Is there a way that I can detect when all dependencies have been updated? Or is there another approach that I missed?

Thanks,
Erick

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:16:04+00:00Added an answer on June 18, 2026 at 8:16 am

    You can attach your own subscriptions to be notified of changes to observables.
    Once your subscription is invoked, it can be a trigger for you to check the success condition.

    For example:

    myViewModel.personName.subscribe(function(newValue) {
        alert("The person's new name is " + newValue);
        //Person got a new name, now lets run the testing tool 
    });
    

    More details here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking for a test framework to introduce automated tests for a language
I'm looking to test my app on iPad via WiFi, in internet I found
I'm looking to execute a Selenium 2 test against the Nightly browser (FireFox 64bit).
I was looking at PageSpeed on my test website and noticed that Lighttpd wasn't
I am looking for a test framework to cover our black box integration tests.
Looking at the Rails Guides http://guides.rubyonrails.org/testing.html#integration-testing-examples and this SO question Rails Functional Test of
I am looking to load test a consumer website. I have tried using JMeter.
I am looking for a test routine like is_deeply in Test::More . There's cmp_bag
Hello fine StackOverFlow'ers, I'm looking for a test coverage tool for my clojure project.
Am looking for a regression test framework where I can add tests to.. Tests

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.