for open new tab we are using window.open but new tab are open in left side how to change the right side
window.open(url, "_blank");
for open new tab we are using window.open but new tab are open in left side how to change the right side
window.open(url, "_blank");
open window in same tab
const editWindowUrl = <yourUrl>
cy.window().then((win) => {
const stub = cy.stub(win, "open").as("windowOpen");
});
cy.contains("Edit").click();
cy.get("@windowOpen").should("be.called");
cy.window().then((win) => {
win.location.href = editWindowUrl;
});
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us