Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Studio] Cypress studio does not capture the code for elements inside iFrame #31009

Open
Himanshum1213 opened this issue Feb 2, 2025 · 1 comment
Labels
experiment: studio Issues when using experimentalStudio type: enhancement Requested enhancement of existing feature

Comments

@Himanshum1213
Copy link

Himanshum1213 commented Feb 2, 2025

Current behavior

Was using the experimental studio for generating the test code using AI, checked that it does not capture the click on element inside iFrame.

Desired behavior

It should capture all the element inside iframe and generate the code

Test code to reproduce

/* ==== Test Created with Cypress Studio ==== */
it('hjbghk', function() {
  /* ==== Generated with Cypress Studio ==== */
  cy.visit('URL');
  cy.get('#EmailPage-EmailField').clear();
  cy.get('#EmailPage-EmailField').type('{enter}');
  cy.get('.spectrum-Button').click();
  cy.get('#PasswordPage-PasswordField').clear();
  cy.get('#PasswordPage-PasswordField').type('Password123{enter}');
  cy.get('.spectrum-Button').click();
  cy.get('[data-testid="fragments"]').should('have.text', 'Fragments');
  cy.get('[data-testid="deliveries"]').click();
  cy.get('[data-testid="contentTemplates"]').should('have.text', 'Content templates');
  cy.get('[data-testid="deliveries"]').click();
  /* ==== End Cypress Studio ==== */
});

Cypress Version

14.0.1

Node version

v20.18.1

Operating System

macOS 13.0

Debug Logs

Other

No response

@jennifer-shehane jennifer-shehane added experiment: studio Issues when using experimentalStudio type: enhancement Requested enhancement of existing feature labels Feb 3, 2025
@Himanshum1213
Copy link
Author

@jennifer-shehane This is very common use-case , Can we please prioritise this ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
experiment: studio Issues when using experimentalStudio type: enhancement Requested enhancement of existing feature
Projects
None yet
Development

No branches or pull requests

2 participants