Ubuntu 18.x + selenium webdriver(Firefox)
Facing a weird problem, the following block works if I run all of it together
fr
This is a known bug of the latest build v0.21.0 of geckodriver matched with the latest version of selenium v3.11
To work around this bug either: a) downgrade geckodriver to v0.20.1 or earlier b) wait for the bugfix/mitigations be rolled out in the upcoming versions of selenium and/or geckodriver
This bug originates from newly added support in v 0.21 of Keep-Alive feature. However, the default timeout from geckodriver in 0.21 is set to 5s, which is exceptionally short.
This bug is tracked here for geckodriver and here for selenium.