I had this question while adding an explicit wait for selenium as below.
class Wait:
@staticmethod
def wait_until_element_present(driver: webdriver, timeout: int = 10) -> None:
WebDriverWait(driver, timeout).until(
EC.presence_of_element_located((By.ID, "myDynamicElement"))
)
Just in case you have not worked with selenium, the Above code simply polls the DOM until the element is present and lets the program moves on. So this method can hold the thread until the condition given evaluates to true. If I want to run tests in parallel, this method might get called simultaneously. My question is, will this delay the other calls to the methods in a parallel test execution situation?