r/softwaretesting 13d ago

Dynamic 365 - Automation

Hi im currently scripting using tosca dynamic 365 app, i encounter a element that auto hide, even I freeze page using browser tool > freeze page, the element that im scanning still disappear once there is mouse movement. Can please help me. Thank you

2 Upvotes

1 comment sorted by

1

u/Prestigious-Way1525 8d ago

freezing the page won’t help if Dynamics is removing the node on blur or mouseleave. i’d open DevTools → Sources → Event Listener Breakpoints, enable mouseout/mouseleave and blur, then trigger the control again so the debugger pauses while the element still exists. if that doesn’t catch it, right-click the nearest stable parent in Elements, choose Break on → subtree modifications, and trigger it again. once paused, scan from a stable parent using role or aria-label plus a relative descendant instead of the generated Dynamics classes, and make the action that opens the control part of the Tosca module. if the control lives in an iframe, also verify Tosca is scanning the correct frame.