Ross Ross - 1 year ago 109
Javascript Question

Adding text in prompt()?

Window that I want to automate:
Window that I want to automate

PROBLEM: Our team decided to create an authentication for our staging environment. My tests now have to do an extra step filling these out. I found out that 'prompt()' cannot be captured by typical weblocators.

I found some answers google but it was only for alert(), how can I input my username and password so that my test can proceed.

Answer Source

That's an authentication request, not a prompt() box. You can supply credentials in the URL: https://username:password@hostname/path

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download