I have run against a really simple problem, but I cannot solve it properly. Namely I am running automated test cases written in Python 3 + Selenium. The tests are going to be executed in Docker to isolate the Python environment from the machine it will be executed on (this is required).
I have noticed that there is a communication problem between the Selenium Hub and Selenium Nodes, which is described in : https://github.com/SeleniumHQ/selenium/issues/3808 . There is a workaround provided which boils down to changing one line of code in the selenium library.
I have already forked the git source of the library, edited the code. Now I need to add it to my project, preferably as a compiled library, as I do not plan to do any edits
Unfortunately this is where I fail. 1. I cannot find any proper tutorial to teach me how to handle this issue, despite it being really elementary. 2. I cannot find the supposedly compiled library after I execute in the console: exclude_path_regex=re.compile(r'third_party') compileall.compile_dir("C:\Users\bchmura\PycharmProjects\selenium\py\selenium",rx=exclude_path_regex) (it outputs 'True' and that's it ... no .pyc file that I can find, or not even a file with today's modification date....)
Therefore my question: how can I:
- properly compile a modified library in python 3.x?
- then include it in my project?
- if possible, how can I properly make my forked git version of the code and then install it using pip on my target environment?
Links to tutorials that will let me achieve the goal are also helpful.