We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I am trying to drag and drop elements in an iframe but not working on UI. I have tried below code This is with the cypress iframe plugin
cy.iframe('iframe#ccAgentFrame') .find('div[title="Standard Trainer x8101"]') .trigger('dragstart', { dataTransfer });
cy.iframe('iframe#ccAgentFrame') .find('div[data-test-id="CONTACT_CENTER_MEMBERS"]>div:nth-of-type(2)') .trigger('drop', { dataTransfer, force: true });
without iframe plugin/library:
cy.get("iframe#ccAgentFrame") .its("0.contentDocument.body") .should("not.be.empty") .then(cy.wrap) .find('div[title="Standard Trainer x8101"]') .trigger("dragstart", { dataTransfer, });
cy.get("iframe#ccAgentFrame") .its("0.contentDocument.body") .should("not.be.empty") .then(cy.wrap) .find('div[data-test-id="CONTACT_CENTER_MEMBERS"]>div:nth-of-type(2)') .trigger("drop", { dataTransfer, force: true, });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I am trying to drag and drop elements in an iframe but not working on UI. I have tried below code
This is with the cypress iframe plugin
cy.iframe('iframe#ccAgentFrame')
.find('div[title="Standard Trainer x8101"]')
.trigger('dragstart', { dataTransfer });
cy.iframe('iframe#ccAgentFrame')
.find('div[data-test-id="CONTACT_CENTER_MEMBERS"]>div:nth-of-type(2)')
.trigger('drop', { dataTransfer, force: true });
without iframe plugin/library:
cy.get("iframe#ccAgentFrame")
.its("0.contentDocument.body")
.should("not.be.empty")
.then(cy.wrap)
.find('div[title="Standard Trainer x8101"]')
.trigger("dragstart", {
dataTransfer,
});
cy.get("iframe#ccAgentFrame")
.its("0.contentDocument.body")
.should("not.be.empty")
.then(cy.wrap)
.find('div[data-test-id="CONTACT_CENTER_MEMBERS"]>div:nth-of-type(2)')
.trigger("drop", {
dataTransfer, force: true,
});
The text was updated successfully, but these errors were encountered: