Closed jploskonka closed 7 years ago
Having the exact same problem after upgrading to 1.x
Hey, @joeypedicini92 please help us. Could you try the patch from @jploskonka to check if it solves an issue for you.
@DavertMik I will try and let you know. The move to executeAsyncScript was good enough workaround for me for the time being so I haven't tested this yet
@joeypedicini92 please try it as we need to know is PR good enough to get merged
@DavertMik when are you planning to release this? We have exact similar issue if there is plan to push new release with this fix it makes our work lot easier (i do not have to go and update everywhere from executeScript to executeAsyncScript)
What are you trying to achieve?
I'm trying to return value from inside
I.executeScript
method with Nightmare helper. What is strange is that withI.executeAsyncScript
it works as expected.I'm not really sure if it's bug or something is going wrong, but with codecept 0.4.X it worked as expected, got broken after upgrading to 1.0.2. I'd like to work on PR to fix it but wanted to make sure that it's really a bug and not me doing something in wrong way.
What do you get instead?
Returned value is
undefined
Test suite to reproduce in comparison with
executeAsyncScript
Output
Output with
--verbose
for failing scenario:Details
Config file