Codeception / Codeception/module-webdriver

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

Aperta
#46 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
PHP
Stelle
39
Fork
25
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.