13o-bbr-bbq / machine_learning_security

Source code about machine learning and security.
1.96k stars 645 forks source link

Alert doesn't exist problem #37

Open iBM88 opened 5 years ago

iBM88 commented 5 years ago

I see error on line 139 in file

machine_learning_security/Generator/util.py

when trying to obj_browser.switch_to.alert.accept() The error message is:

selenium.common.exceptions.NoAlertPresentException: Message: no such alert

Can you help me with that?

13o-bbr-bbq commented 5 years ago

If you add the time.sleep() to main loop in ga_main.py, this problem may be resolved.
But, processing time increase.

I'll check the selenium errors.

iBM88 commented 5 years ago

I have already tried the time.sleep(). It didn't work. However as far as I have searched, the problem is accepting an alert before it is created.