I want to wait for web components in the page to upgrade before running any TestCafe tests (In other words, wait for WebComponentsReady event before running tests). What is the best way to do this?
What is the best way to wait for 'WebComponentsReady' event in TestCafe?
1.3k Views Asked by Varunkumar Nagarajan At
1
There are 1 best solutions below
Related Questions in TESTING
- How does Robot's Telnet library work?
- Behat doesn't load extensions?
- Load additional CONFIG file with values
- rails controller test failing non-deterministicly wrt state leak (I think)
- Ordering tests using trial twisted
- Unexcepted failed Gavel/Dredd test
- How to use Jasmine and CucumberJS with Protractor
- Django login tests session problems
- How to mock specific RequireJs dependencies while unit testing
- Test case for WCF REST Service
- how to test this business logic
- Protractor - How to get first or last CHILD value
- Factory Not Registered in rspec but found in console
- Pick out certain lines from files
- Selenium stops running after click() function runs
Related Questions in WEB-COMPONENT
- Why does this polymer element's property resolve to undefined?
- Polymer content insertion points?
- How do I execute a function on-close or on dismiss of <paper-dialog> for Polymer 1.0?
- Duplicate values with Polymer template repeat
- Inheriting dimensions only if they are specified on the parent element
- Polymer paper-button not rendering
- Polymer 1.0 - Issue selecting dynamic element by id
- google-signin don't return user info
- Polymer - Custom element set a CSS class in ready callback?
- Polymer google-signin element gets Cannot read property 'currentUser' of null
- Polymer 1.0 services issue
- Calling shared services or libraries from a Polymer 1.0 custom element
- How to structure a Polymer SPA?
- Google Polymer 1.0 - Auto-binding template values empty?
- Polymer Data-Binding will not replace
Related Questions in TESTCAFE
- testcafe how to make the selection of the conditional element
- Debugging UI Tests written with Testcafe
- Extend TestController / TestControllerPromise
- Execute tests one by one even across browsers
- Testcafé - getting content of invisible <input>'s value attribute
- How to perform assertion for all nodes of a selector?
- What is the best way to wait for 'WebComponentsReady' event in TestCafe?
- How to do automated UI testing of devexpress controls?
- testcafe Command failed: "npm
- Testcafe report generaton - open source engine
- testCafe slowing the tests down after fileUpload
- HTML custom attribute not showing?
- Write text to a file using testcafe
- How to run TestCafe on another server
- Testcafe process fails to end when using reporters
Related Questions in TESTCASE
- Can we set performance test case baseline programmatically in xcode?
- Android JUnit: assert inside the handler
- Nunit runsTestCase with a TestCaseSource with the first iteration having no parameters? Why?
- junit 4 all pairwise permutations of test methods
- Changing sequence of JUnit gives random errors
- How to handle system.exit in the cucumber test case
- How to write the test case in Jasmine in Angular2 for redirect URL?
- JUnit 4 Test Case
- Cannot find context in class which extends TestCase
- How can I know that TestNG framework is suitable to perform test case prioritization in regression testing?
- Java Rally REST API: How to create new test case
- rake command starts running testcases
- How to get record with same fixture in Yii unit test
- How to add a result tolerance to a NUnit TestCase
- How to access variables in a test case class from a test suite runner class
Related Questions in BROWSER-TESTING
- Getting Spoon.net Plugin Error: "An error occurred while launching the application"
- What is the best way to wait for 'WebComponentsReady' event in TestCafe?
- Get QUnit Results Using MSTest/MSUnit
- How can I test websites for Mobile Devices
- Laravel dusk with browserstack to run tests on multiple devices and browsers
- Laravel Dusk - Check box not clicking
- Laravel Dusk Test assert the element of selector does not exist
- How to fix Katalon Recorder on Chrome
- Is there any tool like ITester for Mozilla Firefox?
- Laravel dusk, incorrect testing result
- Is there a way to input a newline in a textarea with Laravel Dusk?
- Casperjs: testing jquery autocomplete
- VS2015 Source Code Mapping with IIS Test Cases
- Phpunit-Selenium runs all assert functions
- WebdriverIO config file for multiple browsers
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
TestCafe starts to execute any action on the page after the
DOMContentReadyevent is raised. As I see, theWebComponentsReadyevent can be raised beforeDOMContentReady. TestCafe allows you to wait for some events in the browser by using ClientFunction:However, note that TestCafe can't guarantee that this code will be executed before the
WebComponentReadyevent is raised. As a result, this Promise will not be resolved.As a solution, you can find another way to identify if the required Web Component is loaded. For example, you can check that some element is visible on the page:
Meanwhile, TestCafe has a feature suggestion to add the capability to execute a custom script before page initialization scripts. You will be able to use code like this when the feature is implemented: