Open Cmeesh11 opened 3 weeks ago
Hi @Cmeesh11, sorry this isn't working for you. We some very similar e2e tests in hero (https://github.com/ulixee/hero/blob/fa241bd77fc182e576a49a416482dd003db2541e/end-to-end/test/tab.test.ts). I can't tell if yours would be more like the skipped test that has a todo to figure out, or more like the resources one.
Do you know why the "New tab detected" log is happening but it fails waiting for child-tab-created? I would have thought it would fail before the log timeout.
@blakebyrnes It seemed like despite the "New tab detected" being logged, the script was still waiting for the new tab. When attempting another command after the "New tab detected" log, it wouldn't execute, and would just hang until I got the child tab error.
I'm trying to navigate to a new tab by clicking a link (that should open a new tab) and retrieve a resource response from that tab, but whenever using this hero.waitForNewTab() in a headless instance, it always times out, no matter how long the timeout is set for. It works perfectly fine when running locally but it seems like the tabs are handled differently on a headless instance. I'm on EC2 using Chrome. I'm able to log the tabs using hero.tabs, but directly referencing any of those tabs returns undefined.
Example:
Output: