Type Into activity not entering username in dynamic Microsoft CRM login page

I’m working on an automation that logs into a Microsoft CRM page. I’m using the Modern Design experience in UiPath Studio.

Here’s what I’ve done so far:
• I used Get Credential to retrieve the username and password from Orchestrator (Asset: CRM1).
• The username variable is of type String (already converted from SecureString).
• I used Check App State to wait for the username input field to appear before interacting.
• Inside Target Appears, I used Type Into with the username variable.
• I enabled the following options in Type Into:
• Click Before Typing
• Empty Field
• Tried both SimulateType and SendWindowMessages (neither worked).
• The selector seems valid when tested in UI Explorer.
• However, when I run the workflow, the browser opens and navigates to the page, but nothing is typed into the username field.

I suspect the issue might be with how the CRM page loads (dynamic content), or maybe a timing/selector problem.

Any ideas or recommendations?

Thanks in advance

Try Hardware Events with Input Method

Adjust “Wait For Ready” and Input Method

  • In Type Into, try combinations:
    Simulate + WaitForReady: Interactive
    SendWindowMessages + WaitForReady: Complete
  • Also try unchecking all input methods and allow native typing as a fallback.

Test Manual Delay or Retry Scope

  • Try a short Delay of 1–2 seconds after page load before typing.
  • Wrap the Type Into in a Retry Scope to handle intermittent DOM loading issues.

Hi @Sara_Alyahya
Welcome to UiPath,

Add a short delay after page load, fine-tune the selector with stable attributes, and test using default input mode instead of simulate or sendWindowmessages. Use Element Exists with retry if timing is inconsistent.

If helpful, mark as solution. Happy automation with UiPath

  • Add a small Delay (e.g., 2-3 seconds) after Check App State and before Type Into.
  • Add a Set Focus activity on the username field before typing.
  • Re-examine the selector in UI Explorer. Make it more robust by using stable attributes, wildcards, or Anchor Base.
  • Use a separate Click activity on the field before Type Into, with SimulateClick unchecked.
  • Ensure Wait For Ready is set to COMPLETE or INTERACTIVE on both Check App State and Type Into.