Skip to main content

All Questions

0 votes
1 answer
38 views

How to allow a browser permission in NightWatch.js tests?

I'm using NightWatch.js to build e2e tests. One of my tests requires to grant the Chrome browser's microphone permission. When I run this test, I get a permission notification from the Chrome browser ...
skaihugger's user avatar
0 votes
1 answer
37 views

I can't get full chrome browser console logs in the NightWatch.js test

I'm trying to get full browser console logs in the NightWatch.js test. This is my test script. module.exports = { 'Console Log Test': function (browser) { browser // Navigate ...
skaihugger's user avatar
0 votes
0 answers
266 views

Page load timeout after clicking login button in Cypress

I'm new to Cypress and trying to write E2E test of logging in to application. My test looks like this: describe('my_test', () => { it('login', () => { cy.visit(Cypress.env('...
bieluk's user avatar
  • 9
1 vote
1 answer
40 views

Is there any Playwright equivalent for waitForResource in CasperJS?

Is there any Playwright equivalent for waitForResource in CasperJS? How can I write the below code using Playwright? casper.waitForResource(function test(resource) { return resource.url.indexOf(&...
sumercetin's user avatar
0 votes
0 answers
32 views

Puppeteer selector always returns data

I am trying to make sure that app does not render anything before response is received. My test case is it.only("should postpone render rendering", async function () { await page....
howard wolowitz's user avatar
2 votes
1 answer
575 views

Cypress intercept for dynamic pathParam in api and * functionality

I have few API's that i need to intercept. 'randomApi/import/entity' 'randomApi/import/entity/lead1/tabs' 'randomApi/import/entity/lead2/tabs' lead1 and lead2 are values that are coming in the 1st ...
Achal Utkarsh's user avatar
0 votes
1 answer
617 views

Cypress cy.visit() throws error in beforeEach() function

I have created a simple test spec, that contains a few smaller tests. Before each test, cypress has to visit the website that the tests are running on. Therefore, I added the beforeEach() funtion to ...
user avatar
0 votes
2 answers
96 views

Run test for multiple accounts on different providers

I'm trying trying to set up an e2e test suite for cypress. The project I want to test is kind of like vercel. It has multiple git providers where you can login and host your code from that gitprovider....
constantijn van hartesveldt's user avatar
0 votes
1 answer
110 views

testCafe .switchToWindow() method - how to switch to new window using only part of the url hostname (or title)

I would like to switch to new window using just part of the url hostname. For example instead switchToWindow(w => w.url.host === 'testcafe.io') I would like to use sth like: (w => w.url.host =...
larry's user avatar
  • 1
2 votes
1 answer
219 views

Act when element exists, but don't fail when it doesn't (Cypress E2E tests)

I'm writing E2E tests in Cypress (version 12.3.0). I have a page with a table in a multi-step creation process that requires some data from back-end application. In some cases (rarely, but it occurs) ...
Jonasz's user avatar
  • 1,772
0 votes
1 answer
122 views

TestCafe-use dispatchevent to press Digit1 and Numpad1

Gretting all.In TestCafe,there are pressKey()anddispatchevent()to use on press keyboard .I'm now struggling on one thing:I can't press the Numpad by neither pressKey() or dispatchevent().Here's what I'...
cPtz's user avatar
  • 1
0 votes
1 answer
109 views

How can I log all Testcafe requests to the same URL?

I have a URL that I hit multiple times to get different information (myEndpoint.dwr) I am specifically interested in testing the data from the 2nd and 3rd call that i make to myEndpoint. How do I get ...
jclayborn's user avatar
0 votes
1 answer
79 views

TestCafe only running first test in loop

I have the following function to run parameterized tests: export function multiTest<T>({cases, setup, testFn, testNamePrefix, skip, options: _options}: { cases: TestCases<T> setup: (t: ...
bigblind's user avatar
  • 12.7k
0 votes
2 answers
498 views

Testcafe - beforeAll and afterAll tests in a file or all files

If I have 3 test files, and each file has several fixtures and tests, like this file1.js fixture1 test1 test2 fixture2 test3 test4 file2.js fiture3 ...
obelisk0114's user avatar
0 votes
1 answer
75 views

Wait loading icon disappear before action

right now i'm using testcafe for automation, right now i have problem that sometime the loading of website will very high, so have idea that in website have loading icon, so have solution that will ...
user avatar

15 30 50 per page
1
2 3 4 5
14