Questions tagged [web-testing]

Software testing that focuses on web applications. Before the system becomes public, complete testing of a web-based system can help to address issues.

Software testing that focuses on web applications. Before the system becomes public, complete testing of a web-based system can help to address issues.

731 questions
3
votes
1 answer

How to check if text exists in Testcafe

I would like to check if '64' exists on the page which I have created. const x = Selector('.FilterCockpit--header--count').withText('64'); The following test fails. test('x', async t => { await t .expect((x).exists).ok() }); HTML…
3
votes
1 answer

Problems when using Chosen Selectors in external helper functions

I use Testcafe to test a website which is using the jquery plugin Chosen and I want to make an assertion in my test code depending on a value returned by an external helper function (getSelectedOption). This function gets a Chosen Selector as a…
3
votes
1 answer

How does the Testcafe Roles work behind the scenes

I am curious about behind the scenes logic of Roles. I do understand they do some cookies and local storage magic and I am guessing there is some window magic involved as well I am guessing that because in one of our tests one of our window…
Marian Bazalik
  • 1,351
  • 1
  • 13
  • 30
3
votes
1 answer

Run Testcases which use setting of configuration file

I am running Testcases (typescripts files) from the command prompt and there only providing settings like browser selection and concurrency number. But I want to use common settings mentioned in TestCafe configuration file testcafe.js. Can someone…
3
votes
1 answer

Launch browser through testcafe without test

I want to use testcafe to start browsers available through internal end external browser providers. I don't want any testing functionality. But I want to be able to use takeScreenshot, resizeWindow, etc. Here is my code. const pool =…
htho
  • 1,549
  • 1
  • 12
  • 33
3
votes
2 answers

How to select div with pseudoelement ::after in testcafe

I need to click on div with pseudo element ::after. Div itself is invisible, but after hovering on another element, the div::after append icon at the end of div which I need to click. How can I create a selector for div::after? I can perform click…
3
votes
2 answers

Is it possible to use the TestCafe .meta object to skip tests running from the cli

I'm using TestCafe to run my integration tests. I know it has the test.skip function, which is great for when I'm testing locally and want to skip a set of tests I don't need/want to run... but I was wondering if there was a way to run ALL TESTS…
Rob C
  • 662
  • 5
  • 15
3
votes
1 answer

Is there a way to view the actual HTML elements that are being captured by the Selectors?

I am trying to determine if my Selector is capturing the correct HTML elements. The only thing that is being outputted is the Selector object which doesn't tell me anything. I tried to put a debugger in VScode and use the console to view the…
3
votes
2 answers

How to click a button before running tests with testcafe

I want to test the pages of my website application. However, I have a disclaimer page that needs to be accepted before you can access the actual application. Is there a way to execute a task (click the accept button in my case) before doing the…
LuVu
  • 1,053
  • 1
  • 7
  • 23
3
votes
2 answers

Run test on browserstack chrome browser in iPhone using testcafe

I am using TestCafe to perform end to end testing in my project, and using browserstack to support cross-browser testing. I was able to use browserstack for different browsers in Linux and Windows. But I was not able to test in browsers for mobile…
3
votes
2 answers

Update TestCafe script execution status ( passed / failed ) in TestRail

I am trying to integrate TestRail with TestCafe in order to update the test script execution status on TestRail. I followed the below link but did not succeed https://www.npmjs.com/package/testcafe-reporter-html-testrail tried with below one, but…
3
votes
1 answer

No permissions to create screenshot directory when using docker image testcafe/testcafe

I'm using https://hub.docker.com/r/testcafe/testcafe/ to run our Testcafe project and it works except that on failure the screenshot directory cannot be created due to: Error: EACCES: permission denied, mkdir '/screenshots' Is it possible to make…
ADP
  • 136
  • 1
  • 6
3
votes
1 answer

Using HTTPS with remoteConnection option

Is it possible to pass the --allow-insecure-localhost flag when using the remoteConnection option? My app needs to be over HTTPS and when using openssl-self-signed-certificate it doesn't work well. const createTestCafe = require('testcafe'); let…
doron
  • 1,508
  • 3
  • 18
  • 27
3
votes
1 answer

Testcafe live not running

I am on OsX, using nvm, node 10.15.3. Testscafe (not live) works fine, but I was trying to follow the instructions at Testcafe-live At the step where it explains how to install it locally If you have installed testcafe-live locally to your…
3
votes
1 answer

Clicking on a download link and applying .wait(120000) throws an error

I am creating a test where it goes to a specific page and clicks on and the button which downloads an excel file. The file is hosted in a far off location it takes generally 1.5 mins to gather it from the host server before the downloading is…