rhythmic-tomato-2495
05/24/2022, 6:35 PMgray-kilobyte-89541
05/24/2022, 6:47 PMfamous-family-87715
05/24/2022, 7:51 PMgray-kilobyte-89541
05/25/2022, 7:21 AMcolossal-potato-23540
05/25/2022, 8:43 AMbitter-apple-86316
05/25/2022, 9:02 AMbitter-apple-86316
05/25/2022, 9:03 AMfresh-doctor-14925
05/25/2022, 9:22 AMcy.intercept
mammoth-fish-55706
05/25/2022, 11:56 AMgray-kilobyte-89541
05/25/2022, 2:24 PMfresh-doctor-14925
05/25/2022, 2:55 PMrefined-barista-99014
05/25/2022, 3:00 PMjs
cy.get('[class="ember-power-select-option"]').contains('compName').click();
but i get this error:
Timed out retrying after 4000ms: Expected to find content: 'compName' within the element: [ <li.ember-power-select-option>, 19 more... ] but never did.
It seems to only be seeing the top 20 items in the list
I was thinking maybe I could type in the compName into the search on the dropdown to limit the options and then select. But it does not work when using .type(). Any suggestions would be much appreciatedmagnificent-finland-58048
05/25/2022, 3:18 PMtimeout: 10000
maybe the items haven't finished loading
you might event want an intermediate assertion after cy.get('[class="ember-power-select-option"]')
to ensure that n items are loadedrefined-barista-99014
05/25/2022, 3:30 PMTimed out retrying after 4050ms: cy.click() failed because this element is detached from the DOM.
<li class="ember-power-select-option" aria-selected="false" aria-current="false" data-option-index="7" role="option">compName</li>
Cypress requires elements be attached in the DOM to interact with them.
magnificent-finland-58048
05/25/2022, 3:37 PMrefined-barista-99014
05/25/2022, 3:45 PMworried-furniture-56137
05/25/2022, 5:23 PMmagnificent-finland-58048
05/25/2022, 7:42 PMworried-furniture-56137
05/25/2022, 7:53 PMworried-furniture-56137
05/25/2022, 7:54 PMfuture-eye-56254
05/25/2022, 10:38 PMthankful-lunch-80439
05/25/2022, 10:49 PMred-butcher-91574
05/26/2022, 8:15 AMred-butcher-91574
05/26/2022, 8:16 AMred-butcher-91574
05/26/2022, 8:16 AMred-butcher-91574
05/26/2022, 8:16 AMmagnificent-finland-58048
05/26/2022, 11:16 AMmagnificent-finland-58048
05/26/2022, 11:17 AMpowerful-gigabyte-69168
05/26/2022, 1:18 PMwooden-australia-44486
05/26/2022, 1:27 PM