hi there! i have been trying to visit thirds site , seems that my logic works correctly , but seems also it is impossible for now . Could someone clarify it ?
describe("Test task",()=>{
it("remove attr",()=>{
cy.visit("https://www.google.ru")
cy.get( "input[name=q]").type("Yandex{ENTER}");
cy.get("a[href='https://yandex.by/']").first().invoke('removeAttr', 'target').click()
cy.origin("https://yandex.by/", ()=> {
cy.get( "form input[id=text]").type("byndyusoft{ENTER}");
cy.get("a[href='https://byndyusoft.com/']").first().invoke('removeAttr', 'target').click()
cy.origin("https://byndyusoft.com/", ()=> {
cy.get("section div[class='know-more__container'] span:nth-child(2)").click()
cy.get(".popup-callback__footer-contacts [href='mailto:sales@byndyusoft.com']").should("have.text","sales@byndyusoft.com")
})
})
})
})