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
2 answers

Testcafe issues with OKTA OAuth login page

We use OKTA to login to our portal. Users visit our website page, where they click Login, then we redirect them to OKTA login page. Once they enter the credentials and authenticate themselves we redirect users to our portal home page. For some…
Manoj
  • 103
  • 6
0
votes
1 answer

Click file on sidebar to open - instead of doubleclick

Is there a way to modify TestCafé behaviour so that when you click on a filename on the sidebar, the file is opened, instead of requiring doubleclick?
esaruoho
  • 896
  • 1
  • 7
  • 25
0
votes
1 answer

Testcafe works when it should not

First thanks to anyone who can help with this it's greatly appreciated. As you can see by the title this is a very weird occurrence. I do a lot of work with testcafe and can't really explain this. The scenario is at my company we raise instances in…
0
votes
1 answer

My testcafe browser is not closing, when I disable the screenshots from command line

My testcafe browser is not closing, when I disable the screenshots from the command line I an npm script like this "api:dev": "cross-env ENV=dev testcafe \"chrome\" automation_suite/tests --disable-screenshots --fixture-meta…
rackhwan
  • 265
  • 5
  • 14
0
votes
1 answer

Testcafe redirect with token

Im doing some automation in Testcafe, I arrive at the documentation of Intercept HTTP Requests, and Create a Custom Request Hook, my doubt is, can I send a header to a "get" that request the URL that I trying to navigate, I have the token but I…
0
votes
2 answers

Testcafe: Unable to select the element even after passing the right selector. Any help will be appreciated?

await t.click(Selector('.select2-search-choice-close')); Can someone help me with what is wrong here?
notfluffy
  • 101
  • 1
  • 8
0
votes
1 answer

Add response headers via RequestHook

How do I add headers to the response in Testcafe? So far I've tried using the onResponse function of the RequestHook class. Using a RequestLogger, I can validate that the headers were added, but they don't actually make it to the browser (not…
Mike Post
  • 6,355
  • 3
  • 38
  • 48
0
votes
0 answers

TestCafe is losing control over popup-window during login process

Currently I am working on some e2e Tests for my angular project. I am facing the issue that TestCafe doesn't take the control over the new popup-window after a click on the login button. Is there a way to take control over the new popup-window…
0
votes
1 answer

Migrating testcafe suite to TypeScript

We have a huge testcafe e2e tests database and as a part of TS migration I'm rewriting test helper files to TypeScript. But when I import a .ts helper inside of a .js test, test run fails with a syntax error not recognizing TypeScript syntax. What…
Mike Doudkin
  • 640
  • 1
  • 6
  • 16
0
votes
1 answer

How to verify text does not exist on a web page with assertions

I'm new to Test Cafe Studio and I'm trying to figure out how to verify text is not present on a web page. I would like the test to fail if the text is present. Any help would be appreciated.
0
votes
0 answers

Testcafe: Multiple Windows with no storage events

My app uses the localStorage event to "communicate" across browser windows. But it seems that testcafe does not pulish the storage event to other browser instances. Example:
0
votes
0 answers

test cafe : removeRequestHook

So I use t.addRequestHooks to add a few requestMock I have the impression that after the end on my test, the hook are still working. Is there a way to remove all the requestMock in one line? or should I specify all the t.removeRequestHooks one by…
sab
  • 4,352
  • 7
  • 36
  • 60
0
votes
1 answer

Trying to run testcafe with jenkins manually but getting error

hello I followed everything in this article https://devexpress.github.io/testcafe/documentation/guides/continuous-integration/jenkins.html When I am running it shows this error: ERROR ReferenceError: globalThis is not defined at Object.…
TS0306
  • 177
  • 12
0
votes
1 answer

How to upload files in TestCafe when there is no type submit?

Can someone help me with uploading files in TestCafe? I have the following html (I have removed the classes for better readability:
0
votes
0 answers

Testcafe: Inject Client Script Code into Worker Global Scope to mock a missing Web API

It is easy to inject client scripts into window's global scope as per official guide. What I'm having troubles is how to go about injecting client scripts into web worker's global scope. Goal is to mock a Web API which is supported in Chrome's web…
radulle
  • 1,437
  • 13
  • 19
1 2 3
99
100