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

Can't change user agent for firefox/geckodriver #122

Open
jcvignoli opened this issue Feb 11, 2024 · 0 comments
Open

Can't change user agent for firefox/geckodriver #122

jcvignoli opened this issue Feb 11, 2024 · 0 comments

Comments

@jcvignoli
Copy link

I'm trying to set a specific User-Agent in geckodriver for the sake of my tests. But I can't find how to properly set that option in yml settings.

Is there any way to change for firefox the user agent?

  • Codeception version: 5.1
  • PHP Version: 8.2
  • Operating System: Ubuntu
  • Installation type: Composer
  • Suite configuration:
   wpfirefox:
       modules:
          enabled:
              config:
                 WPWebDriver:
                     url: '%TEST_LOCAL_WP_URL%'
                     adminUsername: '%TEST_WP_ADMIN_USERNAME%'
                     adminPassword: '%TEST_WP_ADMIN_PASSWORD%'
                     adminPath: '%TEST_WP_ADMIN_PATH%'
                     browser: firefox
                     path: ''
                     window_size: 1024x768
                     capabilities:
                         moz:firefoxOptions:
                             args: ["-user-agent=wp-browser", "-headless"]
                             prefs:
                                intl.accept_languages: "fr-FR"
@DavertMik DavertMik transferred this issue from Codeception/Codeception Feb 17, 2024
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