My script cannot find element by id because of the dynamic content

Topic summary

  • Issue: A script intended to automate a login page cannot find elements in a login pop-up by their IDs. The author attributes this to the pop-up form being loaded dynamically.
  • Technical context: Dynamic content refers to UI inserted after the initial page load (e.g., via JavaScript/AJAX), meaning DOM nodes may not exist when the script first runs and ID-based queries return no matches.
  • Impact: This prevents the automation from interacting with the pop-up form and completing the login flow.
  • Ask: The author is seeking ideas or approaches to make the script recognize and interact with these dynamically loaded elements.
  • Status: No solutions or action items were provided; the thread remains unresolved. No code samples, screenshots, or attachments accompany the post.
Summarized with AI on February 21. AI used: gpt-5.

Hello,

I have written a script about login page, and my script does not recognize the elements that are in the login pop up form because the login form is loaded dynamically. Do you have any ideas about this? Thanks.