Encountering a peculiar issue:
I am attempting to input a value into the cell using 'type()'. My suspicion is that each letter typed causes the focus on the cell to be lost.
It seems that due to this constant loss of focus and the 'type()' command probably clicking back into the cell, the previous letter gets highlighted and replaced with the next one. This results in: T e s t
The strategies involving 'wait()' and 'focus()' have proven unsuccessful.
Is there a way to slow down the automated input of values?
I am keen to hear your insights and experiences.
Thank you
AG-Grid Cell Code:
<div comp-id="1" class="ag-cell ag-cell-normal-height ag-cell-value ag-cell-inline-editing ag-cell-range-selected ag-cell-range-selected-1 ag-cell-range-single-cell" tabindex="-1" role="gridcell" aria-colindex="1" col-id="column" unselectable="on" style="left: 0px; width: 150px;">t</div>
Screenshot of Cell: https://i.stack.imgur.com/hVHRw.png
Cypress Command:
cy.get('div[row-id="1553c463-0c87-4cc4-a672-89090c6f2cb9"]').should('exist').find('div[col-id="column"]').should('be.visible').click().type('Test{enter}');