All Questions
196
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 ...
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 ...
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('...
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(&...
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....
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 ...
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 ...
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....
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 =...
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) ...
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'...
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 ...
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: ...
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
...
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 ...