-
if I run multiple python scripts which look like this:
... at times when their execution overlaps, will the other running scripts be aborted by the implicit driver.quit() of the "with SB" of the first script finishing? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Your The For multithreading, you have two options:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick response and the selector update! The suggested options seem ideal for one script managing multiple URLs/threads. My goal, however, is to have multiple scripts handling individual URLs without mutual interference. These scripts are invoked within another multithreaded architecture. Is that possible? |
Beta Was this translation helpful? Give feedback.
Your
"span.mark"
selector is incorrect. In case you missed the memo, Cloudflare changed their CAPTCHAs: No morespan.mark
. Onlyspan
now for that selector. (#2766)The
SB()
format will automatically quit the browser at the end of thewith
block.For multithreading, you have two options:
pytest
viapytest-xdist
. (Eg.pytest -n3
, as seen in SeleniumBase/examples/presenter/multi_uc.py)ThreadPoolExecutor
as shown in SeleniumBase/help_docs/uc_mode.md.