minkphp / webdriver-classic-driver

Mink driver for the W3C WebDriver Classic protocol
MIT License
3 stars 5 forks source link

How to use it with Behat? #28

Closed claudiu-cristea closed 2 months ago

claudiu-cristea commented 2 months ago

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 commented 2 months ago

this requires https://github.com/FriendsOfBehat/MinkExtension/pull/26 to be merged

stof commented 2 months ago

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 commented 2 months ago

Thank you, I will move any potential discussion https://github.com/FriendsOfBehat/MinkExtension/pull/26. Closing...