All Questions
12
questions
2
votes
2
answers
2k
views
Unable to select drop down list in testcafe
I am new to testcafe and JavaScript and unable to select drop down list by select element id.
Above is my html file
<div class="collapse show" id="step-1" style="">
...
0
votes
1
answer
2k
views
test cafe, select button where child span has text
I'm using material-ui buttons which put its' labels inside a span element. The button I am trying to click is next to other buttons, the only thing that makes them unique is the text in the child span ...
0
votes
0
answers
54
views
Unable to check a checkbox if it has a link in it
I am testing an application and it contains two checkboxes to accept some license agreement, something like:
<div class="foo">
<div class="pretty p-default p-smooth p-curve p-thick"&...
2
votes
1
answer
1k
views
How do I extract the underlying HTML dom element from a TestCafe Selector?
I'm trying out TestCafe and having problems locating some of my elements. I want to be able to, for debugging purposes, print out whatever element(s) that TestCafe has found with a particular Selector ...
2
votes
1
answer
915
views
Check if element has child
I have the following DOM tree (simplified)
<div class=row-0>...</div>
<div class=row-1>
<div class=container>
<div class=panel>...</div>
</div>
</...
1
vote
2
answers
2k
views
Getting text of all elements within a menu in testcafe
enter image description hereI want to get the text of all links within a menu and compare them to the expected texts. I am new to testcafe.
const all_GeneralDisplayTopLink = Selector('nav.shTop')....
2
votes
1
answer
2k
views
TestCafe - How to get the html output of an element on fail
When I run tests I cannot capture screenshots at the moment in Jenkins without some heavy work. What I would like to do is get the HTML output of the body to see what is displayed when a particular ...
1
vote
0
answers
354
views
TestCafe cant find a <td> element if the text contains a space
I have the next code that asserts if I can find a bank account in a cell. I found out that it's not working when the text in the cell contains a space after the text.
this.bankAccounts = Selector(...
1
vote
2
answers
2k
views
How to fetch all options of dropdown values in TestCafe
I have one dropdown which has n options values. How can I fetch all these options values and then assert them in one go in Test Cafe. I did not find anything in Documentation.
Please let me now how ...
0
votes
1
answer
122
views
How to E2E test data within third party package with Protractor - Angular
I am wondering if it is possible to add a unique identifier to a 3rd party package at the root html element level. For example, I am using the package myDatePicker via NPM.
I can add an ID tag to ...
1
vote
2
answers
1k
views
How can I access a cousin element, of an element with an identifier in Cypress
I am trying to click a check box in a list of Table rows
the only way I can think to access this level is by the span tag with its corresponding name.
cy.get('tr > td > span').contains('...
1
vote
1
answer
2k
views
How do I get rows from a list(table) in a protractor e2e test?
The list in question is a table generated by a reactive angular form which does not have a specific ID. Following code is used to generate the list in angular part:
<p-table id='paragraphList' *...