web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Web automation, proble...
Power Automate
Answered

Web automation, problem with writing text to field due to invalid object reference

(0) ShareShare
ReportReport
Posted on by

I have a web automation flow where I cannot write to a specific UI element, with an error message stating that the object reference is not valid.

I assume this is because of the actual web address is dynamic, even though the element ID in the DOM is still identical.

 

Within my flow a button is clicked on the starting web page, which launches another tab in the browser. It is on this new tab that my problematic UI element is located on. Is there any way to make the subsequent web automation steps interact with this new tab automatically?

 

Or, what ways are there to make the web address dynamic within the Desktop flow, e.g. just looking for part of the URL?

 

Thanks.

  • fraenK Profile Picture
    2,125 on at

    You just have to set/attach the browser instance to the new tab e.g. through title or URL

  • CU16040718-0 Profile Picture
    on at

    Allright.

    That was actually the first thing I thought about, but I could not see any way that I could set it to the new tab.

    How would you go about doing that?

  • Verified answer
    fraenK Profile Picture
    2,125 on at

    After that button click you need to add the launch web browser action and set the launch mode to an existing instance with details about the new tab (title or URL): https://docs.microsoft.com/en-us/power-automate/desktop-flows/automation-web#building-a-web-automation-flow

  • CU16040718-0 Profile Picture
    on at

    Wow, that was simple. I sure feel stupid now. 😀

     

    Thank you. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 249 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 202

#3
David_MA Profile Picture

David_MA 180 Super User 2026 Season 2

Last 30 days Overall leaderboard