Details
Description
- Start recording
- Double-click any view title so that it is expanded
- Click 'restore' button
- You'll get the script like this, which obviously cannot be replayed, as we don't record view maximization by double click:
get-button Restore | click
so we should record something like this:
get-view Properties | maximize
Also note that clicking on a view maximize button at toolbar is recorded, but in unreadable and unpredictable way:
with [get-tab-folder -index 3] { maximize restore } with [get-tab-folder -index 3] { maximize restore }
There are two problems:
- No way to understand which view is being expanded
- Indices are transient even in scope of single test execution - the snippet above corresponds to expanding two different views (though it has been replayed correctly).
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
The problem still exists.
Steps to reproduce:
1. Double-click Problems view (to maximize it);
2. Click "restore" button;
3. Double-click Problems view again.
The following code will be recorded:
which fails on 4th line during replay with the following error:
Execution failed on line 4 at column 1 (JavaProjectWithClass.test:4)
Caused by:
The TabFolder "[]" could not be found.