How to Automatically Type a Username into a Field Using Automation Tools

Hi everyone,

I’m working on an automation task where I need to handle URLs from an Excel sheet. After navigating to a URL, a tab automatically clicks on the username field. I want to write a username into this field, but I prefer not to use the “Type Into” activity. Is there any other activity or method I can use to input the username into the field?

Any suggestions or guidance would be greatly appreciated!

Thanks!

Hi @Aakash_Sharma4

Have you tried using Set Text Activity?

Thank you for your reply.

I can use “Set Text” activity, but it requires indicating where to write in the browser, similar to the “Type Into” activity. However, I want to avoid indicating the target manually, as the “Type Into” activity is not correctly identifying the target.

Are there any other methods or activities that allow me to input text without needing to specify the exact target?

Thanks again!

@Aakash_Sharma4,

Automation is all about teaching or instructing the bot where to click/type and what.

Type into activity is built for the purpose of typing something on the application.

Instead of searching for other options than Typeinto, I would suggest to find the issue with selector of the field you are trying to type.

Thanks,
Ashok :slightly_smiling_face:

1 Like

Thank you for replying.

I am using the “Type Into” activity to input a username and password. It successfully logs in when run for the first time, but when I run the project again, it fails to type the username and password.

Even though I haven’t made any changes, the activity does not input the credentials as expected. I made some adjustments, and it worked once, but now it has stopped working again.

Could you please tell me what steps I should take?

Hey @Aakash_Sharma4

  1. Try checking URL of browser if it changes make the window selector dynamic.
  2. if 1 does not work try using ‘CV type into’ / ‘image selector’ but those require highly accurate window resolution as well as static window /screen scope to work.
    Let me know if it works

@Aakash_Sharma4,

You would be required to make the selectors dynamic. Is your login page same or different?

Thanks,
Ashok :slightly_smiling_face:

1 Like

@Aakash_Sharma4

Type into will work without a selector as well…when it is under the scope or can indicate full window and just remove activate option in the properties and click before …then it would just start sending values to where ever the control is currently on the screen

The above can be done if making the selector dynamic is an issue…but first try to use fuzzy selector and check if it works

Cheers

1 Like

Could you please tell me how to make selectors dynamic.

Yes, my login page is same.

Thank you for replying. I went to the properties and selected ‘null’ for the target, but it still isn’t able to write. It stops here.

@Aakash_Sharma4

  1. Is the field highlighted as is the control on the field by default?
  2. Did ypu remove activate and click before typing in type into?
  3. Did you try with fuzzy selector alone?

Cheers

1 Like

Once the studio picks up the URL from my Excel file, it first searches for that URL on Google. After searching, it automatically navigates to the website.
I haven’t clicked it; it’s supposed to go there automatically.
I’m unsure how to adjust the fuzzy filter settings.

@Aakash_Sharma4

It is supposed to and is it highlighting the field? Like is the control on the field when it moves and did you disable activate and click before?

For fuzzy first indicate the element and then just goto type into properties and in target method select fuzzy selector and deselect everything else

Cheers

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.