r/Python • • Nov 14 '17

Senior Python Programmers, what tricks do you want to impart to us young guns?

Like basic looping, performance improvement, etc.

1.3k Upvotes

629 comments sorted by

View all comments

Show parent comments

6

u/Dreamercz QA engineer Nov 14 '17

So I have this simple selenium-based automation for a website that I'd like to speed up by running the task in more browser windows at the same time. Would this be a good case to use any form of the Python concurrency?

5

u/-LimitingFactor- Nov 14 '17

Hi, I'm going through this right now (maybe we're coworkers lol). Threading doesn't work with selenium, but multiprocessing does.

3

u/Dreamercz QA engineer Nov 14 '17

Cool, thanks, I'll look into multiprocessing.