testcafe Questions
1
I want to test upload folder/ multiple files using testcafe. It has couple of steps to upload files.
Step - 1: Click on file browse button to select files
Step - 2: Native Confirmation box to co...
Scattering asked 17/5, 2019 at 1:11
1
Solved
I'm trying to write a test download works, which requires to check if xhr response has status READY. I created a client function in TestCafe, using promises, but it's failing in case of recursion. ...
Electropositive asked 9/5, 2019 at 2:36
1
Solved
I'm searching for some time now how to use TestCafe with Appium.
Long story short: testing env is a node.js env; automated test script is written in typescript using TestCafe; the plan is to execu...
Chalmers asked 2/5, 2019 at 13:22
2
Solved
I have one test that, if it fails, indicates larger problems with the app. There wouldn't be any point in running the rest of the tests if that one test fails.
Is there a way to bail the suite if...
Averell asked 23/4, 2019 at 16:58
2
Solved
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 ...
Orientalize asked 5/4, 2019 at 13:9
2
Solved
I'm using TestCafe Selectors to select elements. This is a complex nested scenario of cousin child.
Here is the HTML to get an idea of what I mentioned above:
In the picture, I have mentioned 1...
Grandpa asked 8/3, 2019 at 17:10
1
Solved
I've been evaluating TestCafe for an app that requires user authentication. The documentation isn't very clear and I've had trouble getting a straight answer on how we should be using useRole.
Our...
Elvinaelvira asked 28/2, 2019 at 18:54
1
Solved
I'm using the TestCafe 0.23.3. I'm trying to verify an element if it is enabled or disabled. Here is the HTML node of the element when it is disabled:
<button class="MuiButtonBase-root-415 MuiB...
Knitting asked 20/2, 2019 at 14:51
1
Solved
I am given the task to build a test suit using testcafe and, as I write tests I stumble upon one particular question “how much assertions is too much?”.
Basically, after the tests are done, a repo...
Adrenaline asked 16/2, 2019 at 16:23
2
Solved
As I'm getting familiar with Testcafe, I'm trying to use a command line argument to give the user more information on how to run tests. For that reason, I'm using the minimist package.
However, I ...
Lati asked 14/2, 2019 at 18:58
3
Solved
When I installed testcafe with command sudo npm install -g testcafe I was able to use the command "testcafe" in the terminal, running tests like testcafe browser test, but now I formatted my OS and...
Gesticulate asked 1/2, 2019 at 12:5
1
Solved
I am using TestCafe and looking for a solution to do two things in a beforeEach hook:
1. execute a function (login before each test)
2. create unique test data
I am able to achieve both separatel...
Vitiated asked 1/2, 2019 at 15:0
1
Solved
I have an issue with changing the user agent.
I am trying to use the following line in my runner.js file in the browsers array :
chrome:headless:userAgent=Mozilla/5.0\ \(Linux\;\ Android\ 5.0\;\...
Bashan asked 1/2, 2019 at 8:51
1
Solved
I have a problem with getting a text from elements on a web page.
I'm using TestCafe e2e framework and want to print the contents of a text web element to console. Can you provide some code?
const...
Curtsy asked 29/1, 2019 at 7:25
2
Solved
While writing tests with TestCafe i'm creating utility functions, but there seems to be a problem when using the Selector('') method inside any function.
The Selector('') method works fine inside...
Sharpnosed asked 9/1, 2019 at 9:4
1
Solved
I have multiple fixtures (interaction between a website and a hybrid app) and I would like to have a test suite run (Smoke test, regression test ...) but I'm not sure how to do it.
This is how my ...
Trudietrudnak asked 23/11, 2018 at 11:7
1
Solved
Currently, I am doing automation UI tests with testcafejs for React project.
I would like to run these tests in continuous integration environments such as Jenkins. I already add browserStack plug...
Vadnee asked 4/8, 2017 at 10:5
1
Solved
The page I am testing makes a POST ajax request when clicking a button. I would like to test, if the parameters that are being sent in this request are correct. How would I go about that?
This is,...
Tricksy asked 18/10, 2018 at 12:34
1
I have an Ionic/Angular app that reacts to text selections (e.g. for annotation in eBooks). The user can highlight text in the browser, and then a menu pops up (somewhat over-riding / augmenting th...
Mccutchen asked 2/10, 2018 at 19:14
1
I'm trying to implement a custom method to find out if the element is in the current view port
Below is the snippet of code that I've tried to implement but the outcome does not render the boolean...
Hipped asked 24/9, 2018 at 3:26
2
Solved
Taking this fixture I would like to set the checkoutId based on the result from the API call in the before fixture hook so I can use it to set the page on my tests
let checkoutId;
fixture`Check o...
Newmodel asked 1/5, 2018 at 14:16
3
I am looking at creating automation test cases for a VueJS application that will be supported across several different desktop browsers and mobile (iOS and Android) browsers. I have came acro...
Ragman asked 7/3, 2018 at 21:7
1
I am testing a page that has an embed modal with a textbox with an embed code and a "Copy" button that should copy the contents of the textbox onto the clipboard so a user can paste it elsewhere. I...
Lightsome asked 12/9, 2018 at 15:19
1
Solved
RequestLogger
A have this test outside the main test controller, using page model and this recipe.
/**
Used to get the periodic analytic id.
Whenever we are viewing an asset, the server must re...
Juanajuanita asked 22/8, 2018 at 18:15
1
Solved
I attempted to benchmark running times but couldn't get a conclusive result.
Is there any difference between:
await t.expect(Selector('something').visible).ok()
await t.expect(Selector('something...
Draftsman asked 5/9, 2018 at 0:39
© 2022 - 2024 — McMap. All rights reserved.