Cannot get dynamic dropdown element for Angular web application to be recognized in Cypress #24978
Unanswered
rnunezil
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a web application written in Angular I am trying to test in Cypress. I am having trouble making the dropdown menu show up(circled in attached image on left). The dropdown menu shows up when clicking on the 3 dots. When clicking on the dots, I notice the class attribute in the 'fui-datagrid-action-menu' changes to the class attribute show encircled. Thus in Cypress, I tried to set the class attribute value to that value encircled. But when running my test, I get a 'Expected to find element: fui-dropdown, but never found it.'. Below is a snippet of my Cypress code. Can anybody suggest what I am doing wrong or is there a better way of coding for a page like this where the Angular elements are dynamic(ie, class attributes change, etc). Thanks.
Beta Was this translation helpful? Give feedback.
All reactions