Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait for ajax breaks tests #599

Open
golddragon007 opened this issue Nov 5, 2021 · 1 comment
Open

Wait for ajax breaks tests #599

golddragon007 opened this issue Nov 5, 2021 · 1 comment

Comments

@golddragon007
Copy link

I have several scenarios where I get the following error message: Fatal error: Call to a member function execute() on null
This causing it: https://github.com/jhedstrom/drupalextension/blob/master/src/Drupal/DrupalExtension/Context/MinkContext.php#L106
With a combination of the following step name:
Given I am logged in as "B User to follow"
As this is the first command in the scenario and the selenium browser is not yet populated, I get an error.

@golddragon007
Copy link
Author

The wait function should be only called when the session is already running (started).
$this->getSession()->getDriver()->isStarted()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant