-2

I'm trying to automate the login of my college website but the site is behaving kinda awkward nowadays. It is showing an alert for signing(which doesn't work though) and the link keeps on loading. When the alert is canceled then the site loads completely. I'm using selenium and the next line to driver.get method only executes if the site is loaded completely. the link is https://learn.upes.ac.in/

1 Answers1

0

user this method to dismiss the popup prompt and continue with your (normal) method of login.

driver.switch_to_alert().dismiss()
Md Zafar Hassan
  • 284
  • 3
  • 13
  • No the site is designed in such a way that when the alert will be cancelled or sign in is clicked then only the page will load... otherwise it'll be in loading state only. and get() only works if page is completely loaded. and there is no entry of Alert in the HTML of the page – technical tanmaysinghal Aug 31 '20 at 09:05