https://cypress.io logo
Target cannot be null or undefined after cy.get('t...
# i-need-help
c
Hi All I have this issue that cypress can get a table, but after that whether I do assertion like should or read the content, it keeps saying
Target cannot be null or undefined
. In cypress log, it shows something like:
Copy code
get table#groupsGrid_content_table
assert expected <table#groupsGrid_content_table.e-table> to be visible
"Timed out retrying after 4000ms: Target cannot be null or undefined."
The
get
step passed but
should
part failed. How can I fix it? Thanks,
Ok I figured it out. The problem is it is chained to another assertion where expect(row)... gives this error. Since it retries the whole chain, the error message looks like it is related to the first assertion