title: How to refresh page until alert is not visible using selenium (python)
body: <p>I’m trying to make web automation software using selenium and python and i want to solve one problem.</p>
  <p>The problem is that the code is stop when chrome alert is visible like ‘You can’t buy this product right now. Try again later.”</p>
  <p>So what i want is refresh page until alert is not visible.</p>
  <p>i try using <code>driver.switch_to.alert()</code>, but i can’t solve the problem.</p>
  <p>Please help.</p>