-
Notifications
You must be signed in to change notification settings - Fork 135
Description
So I was playing a lot with the execute function to try and get it working as expected but only with partial success unfortunately, I am using chromedriver + latest chrome build to goto to a certain website and run 2 scripts there which suppose to yield functions mounted on the window.
The first script which I run works okay and yields the expected variables on the window object, however, when I run the second script successfully, I should mention, I don't see any of the functions that are supposed to appear on the window.
I both tried execute and execute_async, the latter just hangs until the timeout threshold is exceeded.
I also tried running without the --headless arg to see everything in action. I do see the console.logs from both scripts in the console tab (dev tools) and I can see the source of each when I click on the origin of the console logs.
I do know that the second script is not buggy/broken because if I run it by hand in the console tab it mounts the required functions.
You can see the reproduction code here.
Thanks!