Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

How to pass -enablePassThrough option to firefox #214

Closed
gerhat opened this issue Feb 8, 2018 · 6 comments
Closed

How to pass -enablePassThrough option to firefox #214

gerhat opened this issue Feb 8, 2018 · 6 comments

Comments

@gerhat
Copy link

gerhat commented Feb 8, 2018

Hello!

I am suddenly getting Session [(null externalkey)] error in firefox tests with codeception.
Same issue as here: zalando/zalenium#415

The workaround is supposed to be passing -enablePassThrough false in firefox, but I cannot get around it.

Can anybody inform me on how to pass this option?

Thanks in advance

@diemol
Copy link
Collaborator

diemol commented Feb 8, 2018

HI @gerhat,

The images are using Selenium 3.9.0 and in this version Selenium disabled the flag. So 3.8.1 was the last version where this was supported.

I read that this was done because people were not reporting bugs related to new versions of Firefox.

@gerhat
Copy link
Author

gerhat commented Feb 8, 2018

Thanks for your answer @diemol

Since it is a firefox binding issue (php-webdriver/php-webdriver#523) I managed to make it work using 3.8.1-p13 with the following setup:

 selenium:
     image: elgalu/selenium:3.8.1-p13
     container_name: php_selenium
     ports:
       - "4444:24444"
       - "5902:25900"
     volumes:
       - /dev/shm:/dev/shm
     privileged: true
     environment:
       - TZ="Europe/Athens"
       - SCREEN_WIDTH=1920
       - SCREEN_HEIGHT=1080
       - SELENIUM_HUB_PARAMS=-enablePassThrough false
       - SELENIUM_NODE_PARAMS=-enablePassThrough false

@diemol
Copy link
Collaborator

diemol commented Feb 8, 2018

That's great!
Closing this issue then.

@diemol diemol closed this as completed Feb 8, 2018
@mautz-et-tong
Copy link

I have found an issue in combination with zalenium and added a comment there:
zalando/zalenium#394
Maybe this is something for this issue.

@ghost
Copy link

ghost commented May 17, 2019

hi gerghat, could you please provide the complete docker compose file

@bizmate
Copy link

bizmate commented Dec 4, 2019

I am still seeing the issue despite using 3.8.1 and passing by the HUB and NODE params

selenium:
  image: selenium/hub:3.8.1
  ports:
    - 4444
  environment:
    GRID_TIMEOUT: 300000
    SELENIUM_HUB_PARAMS: '-enablePassThrough false'
    SELENIUM_NODE_PARAMS: '-enablePassThrough false'

When i go on the hub page i see enablePassthrough still set to true
SELENIUM-GRID_2019-12-04_03-44-47

And on the selenium container i see

seluser@f6ba23f0e080:/$ env | grep SEL
SELENIUM_NODE_PARAMS=-enablePassThrough false
SELENIUM_HUB_PARAMS=-enablePassThrough false

Anyone can help confirming if this is the right way of doing it?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants