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

Headless Java HTTP client for crawling?

I'm looking around for a crawling tool, written in Java, to detect invalid url's in our sites. The difficulty is that much of the url's are done with javaScript, CSS3 and Ajax. So just getting the content of the site's url wouldn't do. The ideal…
Jan Goyvaerts
  • 2,913
  • 4
  • 35
  • 48
4
votes
2 answers

Selenium or Eggplant

we are just trying to evaluate which one is best - Selenium or Eggplant Selenium is of course free of cost. The following are some problems we faced: 1. click actually requires focus on the page. so when a test case is running we just have to see…
anony
  • 314
  • 2
  • 14
4
votes
1 answer

Use copied text in Testcafe Naviagation to change URL

I select some text with t.selectText(Selector('#neededURL'), 0, 60) [can copy it if needed] and want to use this text in navigateTo function, how can i do this?
4
votes
1 answer

Testcafe - display steps while running tests

How do I display step by step information while running the test? Currently runs the command testcafe chrome .\test\customer.js Generally speaking, need to see more info as to whats executed.
xelber
  • 4,197
  • 3
  • 25
  • 33
4
votes
2 answers

TestCafe - The browser always starts in clean slate between the tests. How to override this so that browser remembers cache, user settings and storage

The browser between the Tests is always open in a clean slate. The Login is remembered in my application as Authentication persists but as the browser is opened in clean slate always, I have to perform Login in Before hook of all Fixtures. Is there…
Jn Neer
  • 245
  • 1
  • 14
4
votes
1 answer

How to make testcafe wait until a fixture is done executing before moving to the next fixture when using concurrency?

I want to run testcafe tests concurrently BUT only executing against 1 file at a time. In other words, I want to wait for all the tests of a specific fixture to be done executing before the tests from the next fixture start executing. How do I do…
4
votes
2 answers

Testcafe Cookie handling?

I have a question about TestCafe usage. I have a script (fixture) with two tests inside. If the first test runs the URL and if not logged in, the script will log into the site. BUT: the second test always logs in too. It looks like Testcafe does…
ingo
  • 776
  • 1
  • 10
  • 25
4
votes
1 answer

How to get a constructor function from the window object in TestCafe?

In my testcafe tests, I need to get the constructor function for a library I am using in order to call a static method on it. However, I am unable to do this using the given ClientFunction and Eval methods. How can I go about getting the constructor…
Owen M
  • 2,585
  • 3
  • 17
  • 38
4
votes
1 answer

How to do 'beforeEach' only at Fixture level and not for each test under that fixture

I want to run 'beforeEach' only at the fixture level and not for each test under that fixture fixture `Fixture A for Use Case1` .beforeEach(login) test('A Test 1', async t => { await t --- }); test('A Test 2', async t => { …
4
votes
1 answer

ReferenceError: t is not defined - there is no JS error existing

I created a simple 'page objects' example. I get the following error messages when executing the test case: AssertionError: expected false to be truthy Unhandled promise rejection I used the following commands to execute my test: npm run…
4
votes
1 answer

Testcafe Wait until an element has a specific text

After uploading an image with TestCafe the server will do some processing. While this time a label on the website will have "Inprogress" as a label. After the server is ready it will change to date. However, I want to tell the Testcafe script to…
ingo
  • 776
  • 1
  • 10
  • 25
4
votes
1 answer

Font typograpghy issue on cross browser

I am using nova-font in my website, but it looks different-in Firefox (A-bit-zoom-and-more-sharp). Is there any solution so that it looks same on both Chrome and Firefox?
Ali Abbas
  • 43
  • 7
4
votes
1 answer

I have problem in using the drag function in testcafe

I am using testcafe for my end to end testing. I am currently testing my slider component and use the drag function, but for some reason it is not moving even though it shows the cursor moving. This is my rough code: const slider =…
4
votes
1 answer

How can I make a request coming from inside of a docker container appear to be coming from my local machine?

A browser running in docker container needs to make a POST to a login service running on a test API in our network. The service is very picky about where POST can come from so it's rejecting the POST because it's coming from host.docker.internal…
jcollum
  • 43,623
  • 55
  • 191
  • 321
4
votes
2 answers

Testcafe tests ran by automation servers fail randomly

This is inconsistent behavior, I am getting random results with both Jenkins and GitLab-runner. When running the failing tests on the same build machine, everything goes well. (e.g. the tests that failed when ran by the automation server, pass when…
Mike
  • 300
  • 1
  • 7