In order to test my application, I need to have a few browsers playing video, and then, while those browsers are playing, run the tests.

I'm using Selenium Grid deployed in Docker Swarm, and pytest.

How can I achieve this? Because the only idea that comes to my mind is to use async calls for the browsers, and then run the tests sequentially (or even parallel, as they are just queries to an API), but I'm not sure that's the good approach.

closed as unclear what you're asking by Florent B., kirbycope, dzieciou, NarendraC, Bharat Mane Apr 11 '18 at 6:40

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Can't you simply open a browser with multiple tabs open and open YouTube in one of those tabs? – dzieciou Apr 10 '18 at 15:20