https://cypress.io logo
Cypress tutors please help...
# i-need-help
c
cy.get(
table tr td:nth-child(5):contains(${tenant})
) .parents("tr") .filter((k, tr) => { return tr.children[0].innerText === house; }) .filter((k, tr) => { return tr.children[1].innerText === plot; }) .find("[data-test-id='options-wrapper']") .click(); return cy .get("#my-requests-table tbody tr") .filter(
:has(td:nth-child(3):contains(${p3}))
) .filter(
:has(td:nth-child(4):contains(${p4}))
) .filter(
:has(td:nth-child(2):contains(${p2}))
) .filter(
:has(td:nth-child(1):contains(${p1}))
) .filter(
:has(td:nth-child(5):contains(${p5}))
); Can you explain the use of filters in each of these scenario?which is the right usage of filter?
How can we use filter to filter data from multiple columns?