Codeception / Codeception/module-webdriver

Loading webdriver tests with specific google chrome profile

未关闭
#56 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
PHP
星标
39
派生
25
PR 合并指标
30 天内没有已合并 PR

描述

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:

``` yaml
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

贡献指南

这个仓库没有索引到贡献指南

调研方向

未指定源文件或测试。首先检查 WebDriver 模块对 Chrome capabilities 的处理方式以及支持 profile 的配置示例,然后验证 Codeception v2.1.8 是否支持 `chrome_profile` 选项。完成的标准是:WebDriver 测试能够使用指定的 Profile 2 启动 Chrome,并启用其扩展程序。

由索引模型根据 Issue 内容生成。

评估

技术栈
php
领域
testing-qa
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。