Description: When using xdotool to retrieve window IDs, if there are multiple windows, the output ends with '\n'. In the original code, directly splitting the string using split("\n") can result in the last element of the resulting list being an empty string. This situation leads to errors when iterating through the window IDs and converting them to int type
Log: fix the issue of failing to retrieve window ID
This pull-request has been approved by: zhao-george
The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
- **[debian/deepin/OWNERS](https://github.com/linuxdeepin/deepin-autotest-framework/blob/master/debian/deepin/OWNERS)**
Approvers can indicate their approval by writing `/approve` in a comment
Approvers can cancel approval by writing `/approve cancel` in a comment
Description: When using xdotool to retrieve window IDs, if there are multiple windows, the output ends with '\n'. In the original code, directly splitting the string using split("\n") can result in the last element of the resulting list being an empty string. This situation leads to errors when iterating through the window IDs and converting them to int type
Log: fix the issue of failing to retrieve window ID