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

How to use it with Behat? #28

Closed
claudiu-cristea opened this issue Jun 26, 2024 · 3 comments
Closed

How to use it with Behat? #28

claudiu-cristea opened this issue Jun 26, 2024 · 3 comments

Comments

@claudiu-cristea
Copy link

Currently, my behat.yml includes these settings:

  extensions:
    Drupal\MinkExtension:
      base_url: ${env.DRUPAL_BASE_URL}
      ajax_timeout: 10
      files_path: ${joinup.dir}/tests/fixtures/files
      browserkit_http:
        guzzle_request_options:
          verify: false
      javascript_session: selenium2
      browser_name: ${behat.browser_name}
      selenium2:
        wd_host: ${behat.selenium.webdriver_url}
        capabilities:
          browser: chrome
          nativeEvents: true
          marionette: true
          browserName: chrome
          version: '*'
          extra_capabilities:
            loggingPrefs:
              performance: ALL
              browser: ALL
            chromeOptions:
              w3c: false
              args:
                - '--no-sandbox'
                - '--start-maximized'
                - '--disable-gpu'
                - '--window-size=1600,1200'
                - '--disable-dev-shm-usage'
                - '--disable-setuid-sandbox'
                - '--disable-web-security'
                - '--DNS-prefetch-disable'
                - '--disable-translate'
                - '--ignore-certificate-errors'
                - '--test-type'
                - '--disable-extensions'
                - '--incognito'
                - '--disable-infobars'
                - '--allowed-ips=*'
                - '--whitelisted-ips=*'

What should I do to use this driver?

Note: Drupal\MinkExtension is https://github.com/jhedstrom/drupalextension

@stof
Copy link
Member

stof commented Jun 26, 2024

this requires FriendsOfBehat/MinkExtension#26 to be merged

@stof
Copy link
Member

stof commented Jun 26, 2024

and if you use your own MinkExtension for Behat instead of the extension provided in FriendsOfBehat, ask the maintainers of that extension for the answer about how to use the new driver.

@claudiu-cristea
Copy link
Author

Thank you, I will move any potential discussion FriendsOfBehat/MinkExtension#26. Closing...

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

2 participants