I am attempting to use TestCafe for a client-side javascript library, and I am unable to capture any outgoing AJAX requests for on the load of a testing page through the counting mechanism.   My attempts involve using the RequestLogger object from th...
I use TestCafe to automate testing a specific function. In this function, the user is only allowed to have 5 entries. On the site is a label that indicates how many entries are left.  When the user already has 5 entries it should delete one in order...
I'm manually setting auth cookies for my login purpose and I would like to share the Auth token across my tests. The very first time I have to perform a login in a test and then I have to save the auth token in a variable and share it across the...
So I have created a js array for a list of postcodes. The array is as below in the code: -  //postcode.js file var postcode = [     "b28 8ND",      "b49 6BD",      "b28 0ST",      "b31 4SU",     "B92 9AH", ];...
I'm trying to write a script that needs to adapt it's workflow behavior depending on whether a particular browser object found by CSS selector exists or does not exist.  I do not want to use a document.getElementByID method as this is not tec...
While writing tests with TestCafe i'm creating utility functions, but there seems to be a problem when using the Selector('') method inside any function.   The Selector('') method works fine inside test files and also when importi...
UPDATE:  Regarding to another(hammerhead) bug we were forced to use minified code in testcafe test. Since this bug is resolved we're now able to run the tests against non minified code.   But still, we have the problem that source maps get remove...
I'm trying to write a test download works, which requires to check if xhr response has status READY. I created a client function in TestCafe, using promises, but it's failing in case of recursion.   How should I fix my code to handle this sit...
I'm trying to pass arguments to a function that uses async/await. I've defined my function like so  // common.js  export const myAsyncFunc = async (t, textA, textB) => {   await t     .typeText('#input-1', textA)     .typeText('...
I am using Testcafe (free version) with Java Script. I want to run all my test cases (resides in multiple test scripts in __test__ directory) in a single browser instance (That way 1 time log in) per browser type.    For example, 1 instance for chrom...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.