'How can I perform an instruction in the page a .click() redirects me to?
When I do a .click(), console.log isn't executed in the page .click() redirects me to but the current page. How can I execute it in the new page?
let goLastPageButton = document.querySelector(
"#sectionBody > div.con_cuer > div.flechas_horario > div.izq"
);
// issue: instructions after .click() don't perform in the new page
goLastPageButton.click();
console.log("reeeeeeeeeeeeeeeeeeeee");
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
