# How to Input Username and Password popup

**URL:** <https://forum.robotframework.org/t/how-to-input-username-and-password-popup/5631>\
**Category:** Robot Framework\
**Created:** [2 May 2023 08:27 UTC](https://forum.robotframework.org/t/how-to-input-username-and-password-popup/5631 "2023-05-02T08:27:55Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![robocorp19](https://avatars.discourse-cdn.com/v4/letter/r/439d5e/32.png) [@robocorp19](https://forum.robotframework.org/u/robocorp19)\
**Post date:** [2 May 2023 08:27 UTC](https://forum.robotframework.org/t/how-to-input-username-and-password-popup/5631/1 "2023-05-02T08:27:55Z")

</div>

Hi, i created a bot to open up a webpage. Upon open the URL a popup to input username and password is required. How can i achieve this? tried google around but no answer.

---

<div class="post-metadata">

**Author:** ![NikosKoul](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/nikoskoul/32/2512_2.png) [@NikosKoul](https://forum.robotframework.org/u/NikosKoul)\
**Post date:** [2 May 2023 11:13 UTC](https://forum.robotframework.org/t/how-to-input-username-and-password-popup/5631/2 "2023-05-02T11:13:23Z")

</div>

You can try this:

{element1} Get Webelement //xpath  
Execute Javascript arguments[0]click(); ARGUMENTS ${element1}

---

<div class="post-metadata">

**Author:** ![\_daryl](https://avatars.discourse-cdn.com/v4/letter/_/45deac/32.png) [@\_daryl](https://forum.robotframework.org/u/_daryl)\
**Post date:** [2 May 2023 14:54 UTC](https://forum.robotframework.org/t/how-to-input-username-and-password-popup/5631/3 "2023-05-02T14:54:23Z")

</div>

It be worth providing more information as in what libraries you are using…  
Thanks

---

<div class="post-metadata">

**Author:** ![robocorp19](https://avatars.discourse-cdn.com/v4/letter/r/439d5e/32.png) [@robocorp19](https://forum.robotframework.org/u/robocorp19)\
**Post date:** [3 May 2023 01:01 UTC](https://forum.robotframework.org/t/how-to-input-username-and-password-popup/5631/4 "2023-05-03T01:01:32Z")

</div>

I’m using RPA.Browser.Selenium library

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [4 May 2023 05:13 UTC](https://forum.robotframework.org/t/how-to-input-username-and-password-popup/5631/5 "2023-05-04T05:13:53Z")

</div>

> [@robocorp19](#):
>
> popup to input username and password is required

Popup is quite a generic term, because you can have popup’s that are OS level dialogues created by the browser and popup’s that are HTML elements that look like dialogues.

I suggest you use the developer tools of the browser and try to inspect the user name field, if you can inspect it and see it’s an \<input type html element then entering the username and password is the same as any other field, otherwise it’s probably an OS level dialogue.

If your still not sure show some screen shots of the popup and might be able to figure it out.

Dave.

---

<div class="post-metadata">

**Author:** ![robocorp19](https://avatars.discourse-cdn.com/v4/letter/r/439d5e/32.png) [@robocorp19](https://forum.robotframework.org/u/robocorp19)\
**Post date:** [5 May 2023 01:16 UTC](https://forum.robotframework.org/t/how-to-input-username-and-password-popup/5631/6 "2023-05-05T01:16:36Z")

</div>

Here is the image. I try to get the HTML elements but not able to inspect.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/5/5eef885d6b0ccf8ae146a0198ea93df2858fe917.png)

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [5 May 2023 02:24 UTC](https://forum.robotframework.org/t/how-to-input-username-and-password-popup/5631/7 "2023-05-05T02:24:23Z")

</div>

> [@robocorp19](#):
>
> Here is the image.

Ok that looks like a chrome generated dialogue.

The easiest way to deal with a dialogue like this is to just put the username and password in the url.

If your url is `https://your.host.name/path` it becomes `https://username:password@your.host.name/path`, then the dialogue shouldn’t appear and you should get logged in.

If that doesn’t work then perhaps one of these threads will help

- [SecureAuth Sign In pop up. How to handle](https://forum.robotframework.org/t/secureauth-sign-in-pop-up-how-to-handle/757)
- [Handle Authentication Popup using Selenium Library in Robot Framework](https://forum.robotframework.org/t/handle-authentication-popup-using-selenium-library-in-robot-framework/2898)

Dave.

---

<div class="post-metadata">

**Author:** ![robocorp19](https://avatars.discourse-cdn.com/v4/letter/r/439d5e/32.png) [@robocorp19](https://forum.robotframework.org/u/robocorp19)\
**Post date:** [5 May 2023 04:21 UTC](https://forum.robotframework.org/t/how-to-input-username-and-password-popup/5631/8 "2023-05-05T04:21:25Z")

</div>

> [@damies13](#):
>
> [https://username:password@your.host.name/path](https://username:password@your.host.name/path)

Thanks. is working now. informative information.

---

<div class="post-metadata">

**Author:** ![Meha\_Atchaya\_A](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@Meha\_Atchaya\_A](https://forum.robotframework.org/u/Meha_Atchaya_A)\
**Post date:** [5 May 2023 04:28 UTC](https://forum.robotframework.org/t/how-to-input-username-and-password-popup/5631/9 "2023-05-05T04:28:16Z")

</div>

How to inspect an text element and write a code to click that particular element which is inside the shadow dom using robot frame work?

---

<div class="post-metadata">

**Author:** ![\_daryl](https://avatars.discourse-cdn.com/v4/letter/_/45deac/32.png) [@\_daryl](https://forum.robotframework.org/u/_daryl)\
**Post date:** [5 May 2023 06:58 UTC](https://forum.robotframework.org/t/how-to-input-username-and-password-popup/5631/10 "2023-05-05T06:58:48Z")

</div>

@Meha_Atchaya_A

You’d in honesty always be best creating a separate post given this here is about a pop up, whereas you’re query is surrounding shadow elements, so you query is hidden as it’s not related to the op, for which your limiting any help/responses you could get.

You’d also be worth providing the library being used, I suspect you won’t be using browser but instead seleniumlibrary if your having problems, but purely an assumption.

---

<div class="post-metadata">

**Author:** ![franciscobenavides05](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/franciscobenavides05/32/3404_2.png) [@franciscobenavides05](https://forum.robotframework.org/u/franciscobenavides05)\
**Post date:** [21 January 2024 10:33 UTC](https://forum.robotframework.org/t/how-to-input-username-and-password-popup/5631/11 "2024-01-21T10:33:07Z")

</div>

Good morning community, maybe you can help me, I am a newbie in this world of robocor, I am trying to automate a login process through a Fortinet VPN client from the desktop of a Windows system and I cannot automate the entry of the password, I have used tools like (Accessibility Insights) to detect the ID and fields.

 ![vpn](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/c/cd1e3875c2674ff68c8df0d616bdf8133abd6308.png)

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [21 January 2024 11:07 UTC](https://forum.robotframework.org/t/how-to-input-username-and-password-popup/5631/12 "2024-01-21T11:07:20Z")

</div>

Hi Francisco,

Welcome to the community,

This topic was marked as solved and your problem is with a desktop app not web app like the original issue, you would be better off posting a new question

Also have you tried and libraries? which ones? mention that when you create a new thread.

Dave.
