Last updated: Jun 01, 2020 15:44
The following error is thrown when closing a tab in Firefox:
WebDriverError: Missing 'handle' parameter
This is a known issue in Selenium 3.6 and 3.8, here is the link to the issue on Selenium GitHub:
The workaround is to use Selenium version 3.4 through capabilities, this can be done by adding the "seleniumVersion" capability to the test and setting it to "3.4.0": 'seleniumVersion': '3.4.0'
For more information on this capability, see Desktop Web testing.