Questions tagged [testcafe]

TestCafe and TestCafe Studio - end-to-end testing, simplified. Questions from users of the open-source TestCafe and TestCafe Studio community edition subscribers.

Resources

1850 questions
0
votes
1 answer

How to add chrome browser to TestCafe docker image?

TestCafe docker image is having only chromium,firefox. I want use same image to run tests on chrome & tried to build docker image by installing chrome browser using testcafe base image (linux/amd64). But running into issues. docker run -v…
0
votes
1 answer

testcafe/testcafe- base alpine image fails to run msnodesqlv8 in docker

Hello I am dockerizing my testcafe project and my package.json has a dependency to install msnodesqlv8. Looks like my docker file is failing , what am i doing wrong here? deasync@0.1.21 install /app/node_modules/deasync > node ./build.js …
TS0306
  • 177
  • 12
0
votes
2 answers

How to make assertions with variable text content

await t.expect(Selector('#elementId').innerText) .eql('Discounted 20% with your subscription'); Here the text - Discounted 20% with your membership 20% is not constant, it may change to 15% or 19% how can I "assert" this? I have tried await…
0
votes
1 answer

How I can bypass Symantec VIP authentication while running TestCafe automation test?

I am running TestCafe test automation. We have Symantec 2-Factor authentication set while someone login using username&password. I need to bypass OR validate this 2FA process using TestCafe. I know the basic authentication we can do using TestCafe…
Maher
  • 363
  • 2
  • 5
  • 18
0
votes
1 answer

TestCafe --retry-test-pages behaviour for empty page

I'm trying to understand the retry-test-pages feature for TC. Let's consider the case while I'm trying to run tests, but forgot to run frontend application (usually hosted at http://localhost:6666). Test runner creates new browser instance,…
0
votes
1 answer

TestCafe: awaiting ClientFunction to resolve in expect method leads to unexpected behavior

I'm currently facing an issue where awaiting a TestCafe ClientFunction within a assertion query chain leads to the behavior demonstrated by the code below: const getPageUrl = ClientFunction(() => window.location.href.toString()); // This test works…
Martin H.
  • 538
  • 1
  • 7
  • 21
0
votes
1 answer

How do i inject node ENV values into Testcafe Studio test

We are using TestCafe Studio to generate tests from the UI. One area we are struggling is in injecting commandline/node env values into these tests. Is there a way I can inject UserName and Password into TestCafe Studio tests? I know we can do this…
TeaCoder
  • 1,958
  • 13
  • 13
0
votes
1 answer

Automating a Password Reset flow with Testcafe

My goal is to somehow send the email and click the link to reset the password, access that link and write a new password. Don't really know if this is possible or could only be mocked. I would also like to catch the content of the email and check…
user3303019
  • 142
  • 1
  • 11
0
votes
0 answers

Unable to typetext(enterdata) into text boxes using testcafe (vuejs application)

we are using testcafe tool for FE automation. On our page we have multiple vue components each having different text boxes( ex: contact info section, address info section). All the text boxes have similar kind of selectors with only id as change.…
Tester
  • 27
  • 1
  • 1
  • 5
0
votes
2 answers

How to get some Browser performance indication using testcafe

I've an application that have some room for performance improvements. Our customer has requested some performance measurements on the Client (Browser) side, and I'm trying to use testcafe to have some execution time indications. One option is to…
fman
  • 175
  • 2
  • 4
0
votes
0 answers

How can I debug TestCafe to see why it stopped reporting pass or fail midway through running tests?

Overnight I have 250+ TestCafe tests running on a server usually without any problem, however last night results stopped being reported after the 90th test but the remaining tests continued to run. When the tests are ran the console output is…
j89
  • 1
  • 1
0
votes
1 answer

Run setup before each fixture using before

I would like to run a fixture or a set of testController methods before each fixture using testcafe's before function fixture I want to run before each fixture extracted into a separate function // testSetup.ts export async function…
0
votes
1 answer

Does TestCafe support sections in page objects (like Nightwatch does) ? If not, how can we achieve this in TestCafe?

We have rich UI with lot of web elements & multi levels of elements on UI segregated into sections. As part of evaluation for a new test automation framework, I am looking to see if we can use TESTCAFE. Currently we are using Nightwatch (Java…
0
votes
1 answer

TestCafe Studio custom action name

I'm using TestCafe Studio Version 1.4.1 and using visual test recorder. I can't see any way to specify a descriptive name to each test action. I only get names like Click that do not tell me what was clicked. Ideally I would like to add a name like…
TeaCoder
  • 1,958
  • 13
  • 13
0
votes
1 answer

TestCafe : How can i pass Authorization token in the base url

In my application, when I am accessing the base url I need to pass in Authorization Token. I have an Auth token generation endpoint that returns the Authorization token and then this token needs to be passed in the header of the base url of my…
Jn Neer
  • 245
  • 1
  • 14
1 2 3
99
100