Codeception / Codeception/module-webdriver

How pass ssl certificate to seleniod in codeception from local chrome driver

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

描述

I have test when I will need to open browser with ssl certificate , the certificate is installed in my local chrome driver.

My situation is I need to pass local chrome configuration to chorme is open with seleniod

here is my yml file that I use to configure with seleniod:

```
modules:
enabled:
- Setter:
source: cash
- WebDriver:
browser: chrome
url: 'https://creditplus.ru/'
host: 192.168.4.117
window_size: 1376x768
restart: true
port: 4444
capabilities:
browserName: "chrome"
version: "65"
browserTimeout: 500
enableVNC: true
sessionTimeout: 120
name: "Cash here"
```

I tried to use the chrome profile like it shows below without any success:

```
modules:
enabled:
- Setter:
source: cash
- WebDriver:
browser: chrome
url: 'https://creditplus.ru/'
host: 192.168.4.117
window_size: 1376x768
restart: true
port: 4444
capabilities:
browserName: "chrome"
version: "65"
browserTimeout: 500
enableVNC: true
sessionTimeout: 120
name: "Cash here"
chromeOptions:
args: "user-data-dir=/home/strefi/.config/google-chrome/Default"]
```
When the browser open I am getting:
`
403 Forbidden `

because there is no certificate

Please if someone have the situation with seleniod and Codeception help me.

In summary:
1- how I can export ssl certificate from local browser to seleniod in Codeception PHP

贡献指南

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

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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