Using python with selenium, fragment of the code:
alert = driver.switch_to_alert().accept()
By run the code, i get:
Warning (from warnings module):
File "C:\Python34\selenium\webdriver\remote\webdriver.py", line 517
warnings.warn("use driver.switch_to.alert instead", DeprecationWarning)
DeprecationWarning: use driver.switch_to.alert instead
I dont understand this, Didn't i just use driver.switch_to.alert?