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

TestCafe does not write in text input field

I'm using TestCafe for test automation of a web application based on the Wicket framework. I try to type text into a text input field ... well, actually it is a dropdown list, where a text input field appears, so that the user can search for certain…
3
votes
1 answer

When asserting that an element is found is using .exists necessary?

It seems that, t.expect(Selector("[data-testid='foo']")).ok(); and, t.expect(Selector("[data-testid='foo']").exists).ok(); result in the same outcome so is .exists necessary?
3
votes
1 answer

Quarantine mode for the fixture or test

Is it possible to run some tests in quarantine mode and run others without the mode? For example, we have some lightweight tests and we don't need 3 tries for them, but for others it can be necessary
Maksim
  • 260
  • 4
  • 11
3
votes
1 answer

Clicking anchor tags does not navigate to target destinations

Issue: Clicking some anchor elements in a mobile device using Chrome's device emulator fails to navigate to target links. Here I'm trying to test the behavior of switching the style of product cells from grid view to list view by clicking an icon…
3
votes
1 answer

Testcafe checking api response always passes

I have a testcafe test that checks API response JSON for a matching string and no matter what is in the response JSON, the test always passed. I am running Gherkin/Testcafe integration. Last "Then" step is to check an API response JSON body. logger…
3
votes
1 answer

How to be more verbose on tests?

I wanted to have more verbose output for each test step; Any ideas on how could I best achieve this without adding console.log after each step ? I tried to overload the t object as shown below but can't get to have it work more than one time in the…
3
votes
1 answer

TestCafe: Chaining selectors/functions doesn't seem to work

I'm trying to chain together a Selector, a withText, a find, and another withText in order to find a particular link. Here's the HTML I'm trying to search through, and I want to select the "Edit" button that's in the div with the text…
3
votes
1 answer

How to use window variables between fixtures for TestCafe?

I have one fixture, "Page1" which I use a random word generator to create a named input box. I will need to use this variable on a different fixture, "Page2". How can I accomplish this? We can't use window for testcafe, and all efforts to export the…
3
votes
2 answers

TestCafe how to share variables from a RequestHook

We want to automate testing for our analytics calls. I am currently evaluation front end test tools, that could be used for this. I found TestCafe Studio to be what we would need to create the tests, but first I need some proof of concept. Thus I…
Thomas
  • 6,325
  • 4
  • 30
  • 65
3
votes
1 answer

Remove value from HTML5 date input using TestCafe?

I can't seem to remove the value in an HTML5 date input with TestCafe after it's been set. I've tried typeText and pressKey so far; typeText works for setting a new date but can't input an empty string, while using delete and backspace with pressKey…
lostlemon
  • 744
  • 1
  • 6
  • 17
3
votes
1 answer

How can I make testcafe to copy and use same headers as the actual website?

I am running testcafe tests on an authentication page and I can see that testcafe is modifying/removing/adding the headers when sending the requests to the website and this is blocking me to do 2FA on this page As soon as I got the issue, I tried to…
3
votes
1 answer

TestCafé Native Dialog Handler sporadically not working

I have a test in which I try to delete a file. A native dialog appears, and the test asserts whether the text in the dialog contains the string that I expect. Sporadically the test fails for seemingly no reason, and I can't debug it because I can't…
3
votes
1 answer

TestCafe persist data when clicking

In TestCafe, on click of an anchor tag, I have a redirect to a new page and an event that basically logs the click event to an object. I'm wanting to test the value of the click event in the object in TestCafe, but because the redirect happens, I…
matmik
  • 590
  • 1
  • 4
  • 14
3
votes
1 answer

TestCafe - How can I determine the mouse cursor (pointer) shape when over certain HTML elements

I am trying to write a TestCafe functional test around drag and drop. I already have drag and drop working and I am trying to test the source/target functionality by trying to drag an element onto a part of the screen it is not allowed to drop. …
3
votes
1 answer

Not able to assert H1 text

I am trying to write something to check that "About Us" exist on the following page: https://www.aggrowth.com/en-us/about-us and I am just hitting a wall. It shouldn't be difficult, but I have spent too much time on this. We are using…