I need to select the names of the whole cast; for that, I can identify the locations of the names using the CSS locators but I don't understand how can I select that text. (This is supposed be similar to the action that we perform while holding the left-mouse-button down and dragging to our desired position)
Specifically, in my case, I am trying to copy 'Ricky Gervais' and this selector takes me to it. How can I select and copy this text?
cy.get('tbody > :nth-child(2) > :nth-child(2) > a')