Automation not working in a screen sharing session in Teams, but works without screen share


I am facing issue with a UI Automation, that works when I run it myself. But when I run the same solution in a screen sharing session, the firefox window being used by the automation crashes and displays a white screen after a specific step in the process.

I appreciate any help on this issue.

Thank You

I have experienced the same before as the teams window is also chromium based so the selectors are scrambled when the sharing is “on top” of your actual screen. If you would just like to demo your automation, I would suggest recording it for playback during screen sharing.
Another option is if you can run your automation on another machine via remote desktop, then sharing it live via teams will not be a problem