I am trying to click "OK" on my localhost for a popup window that is generated with Jquery. I tried switching to the window that didn't work
handleName = driver.window_handles
driver.switch_to.window(handleName)
then I also tried doing a javascript popup but its a Jquery so it wouldn't work
alert = browser.switch_to_alert()
alert.accept()
browser.close()
what are my other options?