I am working with selenium webdriver in python.In my code I am controlling Firefox with the help of selenium and geckodriver.Everything goes well,except that when I convert it into an GUI executable and run it ,a geckodriver black screen appears.I have made the executable from python using this command:
pyinstaller --windowed --onefile Main.py
So, initially I don't get a black screen.The black screen appears only when I am clicking a button associated with opening firefox using selenium webdriver.I understand that geckodriver is a dependency file for selenium,but isn`t there anything I can do or write in the python code that can prevent geckodriver from showing the black screen and still execute the command ?