nightwatchjs / nightwatch

Integrated end-to-end testing framework written in Node.js and using W3C Webdriver API. Developed at @browserstack
https://nightwatchjs.org
MIT License
11.79k stars 1.31k forks source link

Can't handle Authentification popUp with two text fields #1586

Closed ghost closed 7 years ago

ghost commented 7 years ago

Thanks in advance for your contribution. Please follow the below steps in submitting an issue, as it will help us with addressing it quicker.

Before submitting a new issue, try searching for a similar one here: https://github.com/nightwatchjs/nightwatch/search?state=open&type=Issues.

ghost commented 7 years ago

Please see an attached screenshot. Can't handle authentication alert containing two text fields.Triggering TAB doesn't work as well.

aamorozov commented 7 years ago

@Denchik1987 Have you tried passing credentials in url? Like:

https://username:password@websiteUrl.com.

If that doesn't work take a look at windowHandles() webdriver command. Try printing out all windows and if that popUp appears to be a separate window just change the focus to it.

http://nightwatchjs.org/api/windowHandles.html

ghost commented 7 years ago

@aamorozov Thank you for quick respond. I tried this thing first but somehow it doesn't allow me to perform any action related internal URLs, simply speaking tabs and buttons are not clickable.Please see an attached screenshot.

aamorozov commented 7 years ago

@Denchik1987

Try adding "acceptSslCerts": true to your desired capabilities object for firefox.