Loading webdriver tests with specific google chrome profile

Open
#56 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
php
Domain
testing-qa

Research direction

No source file or test is named. Start by inspecting the WebDriver module's handling of Chrome capabilities and the configuration examples for profile support, then verify whether the chrome_profile option is supported in Codeception v2.1.8. Done means a WebDriver test launches Chrome with the specified Profile 2 and its extension enabled.

Written by the indexing model from the issue text.

Description

Hi All,

I am trying to execute my codeception/webdriver tests on google chrome with a particular extension enabled.
So, I created a new chrome profile. The path is: ~/watchmaster/.config/google-chrome/Profile 2
Now I provided this path in my config yml file as:

modules:
  config:
    WebDriver:
      host: localhost
      port: 4444
      browser: chrome
      window_size: 1024x768
      url: 'xxx'
      capabilities:
        unexpectedAlertBehaviour: 'accept'
        chrome_profile: '/home/watchmaster/.config/google-chrome/Profile 2'
    \Helper\EnvSpecificHelper:
      languageCode: de_DE
      environment: testing-de_DE

But when I execute my tests, it is not loading this profile.
I am using codeception v2.1.8
Any pointers how can I achieve loading this specific profile?

Thanks
Prateek

Dominant language
PHP
Stars
39
Forks
23
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Codeception/module-webdriver

All issues in Codeception/module-webdriver

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.