0

What maven dependency should I add in my pom.xml and what library should I import in order to set this ChromeOptions capability?

opts.setCapability(CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR, UnexpectedAlertBehaviour.IGNORE);

Need to set it in order to avoid the following exception:

org.openqa.selenium.UnhandledAlertException: unexpected alert open: {Alert text : abuse limit triggered}

khmarbaise
  • 92,914
  • 28
  • 189
  • 235
Prophet
  • 32,350
  • 22
  • 54
  • 79

1 Answers1

0

Well, the imports here are:

import org.openqa.selenium.remote.CapabilityType;
import org.openqa.selenium.UnexpectedAlertBehaviour;

I really don't understand why my IDE didn't auto-suggest me them?

Prophet
  • 32,350
  • 22
  • 54
  • 79