I'm struggling to make code like: click the button with the help of the selenium unless a new table get created and stop after the table exists. I'm using python with selenium. i've tried to search everywhere but didn't find the solution. any help will be appreciated.
my code
while not driver.find_element(By.ID("tableID")):
submit_btn.click()