Answers for "window.open same tab"

2

window open same tab

window.open("https://www.youraddress.com","_self")
Posted by: Guest on November-13-2020
0

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;
});
Posted by: Guest on October-05-2021

Code answers related to "window.open same tab"

Code answers related to "Javascript"

Browse Popular Code Answers by Language