I am facing issues while trying to automate selenium on a website owned by a third party.
When an authentication prompt like this appears in Firefox, Selenium fails:
https://i.sstatic.net/VHQB4.png
You can see a similar situation when clicking the Display Image button here
Is there a way to dismiss this using JavaScript, perhaps through a Firefox extension? Any other solution is also welcome.
We attempted to dismiss the prompt in selenium with the following code:
Alert alert = driver.switchTo().alert();
alert.dismiss();
We also tried disabling Javascript but it wasn't successful since we need it enabled for our automation.
Although there exists an extension that addresses this issue, we cannot use it due to restrictions against third-party code and specific requirements regarding behavior.
Edit: Our approach differs from the linked question as we are searching for an in-browser solution utilizing JavaScript.
Any assistance or advice would be significantly valued,
Liam