enhancement
In scripted tests, fields and commands are often resolved relative to a LayoutComponent. This works even if the component is invisible. As a result, many scripted actions can be executed even when they could not be performed at all on the GUI. This leads to unexpected results.
Improvement
After resolving the component, a check is performed to ensure it is visible. If it is not visible, an error is thrown. Some specific actions (e.g., Goto commands) must still be able to resolve invisible components.
Test
- In the Structures > Type Demo > Type Demo view, switch
- Record the change of an element’s name.
- Switch to Structures > Type Demo > Grid
- Play back the recorded action.
- Expected result: An error occurs indicating that the component is not visible.