please support to extract this text from div class. I'm using the following code but it is not working.
print(WebDriverWait(driver, 20).until(EC.visibility_of_element_located((By.XPATH, "//div[@class='Your object has been successfully created']//p"))).text)