Q1.Explain Cypress architectural design and why running inside the browser provides speed advantages.
Unlike WebDriver out-of-process architecture, Cypress executes directly inside the same browser run loop as the application under test. This grants synchronous access to native window objects, DOM elements, and network layers without IPC translation overhead.
cy.window().then(win => { console.log(win.location.href); });