UnboundLocalError when running splinter browser
I get this error:
UnboundLocalError: local variable 'e' referenced before assignment
When I try to use splinter browser as:
gekoExe_path = {'executable_path': <gekodriver path>}
browser= Browser('firefox', **gekoExe_path, headless= False)
I'm using splinter version: '0.13.0' and firefox
The Browser object has bug. I see it fixed in the source code but not in the pip packages.
I solved that by installing the splinter from source code as mentioned here and adding the gekodriver executable to path.
The Browser object has bug. I see it fixed in the source code but not in the pip packages.
Are there any plans to create a new release? This bug is very frustrating as it prevents you from seeing the actual underlying exception.
Either you can use the source code directly in your project. Or don't use the Browser object but directly call the required driver.