Instantly share code, notes, and snippets.

@johnmarinelli /behat.yml Secret
Last active Sep 25, 2018

Embed
What would you like to do?
why isn't my userAgent string getting picked up in my tests?
default:
...
extensions:
...
Behat\MinkExtension:
base_url: https://www.example.dev
javascript_session: selenium2
browser_name: chrome
selenium2:
capabilities:
marionette: true
browser: chrome
chrome:
switches:
- --headless
- --disable-gpu
- --no-sandbox
sessions:
android:
selenium2:
capabilities:
browser: chrome
marionette: true
chrome:
switches:
- --headless
- --disable-gpu
- --no-sandbox
extra_capabilities:
chromeOptions:
mobileEmulation:
userAgent: 'Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Mobile Safari/537.36'
# navigator.userAgent === "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/69.0.3497.100 Safari/537.36"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment