A computer program product stored in a computer readable storage medium comprising hardware having computer program product code embodied therewith that, when executed by an information handling system, causes the information handling system to perform actions that include:
- capturing a first admin-console context corresponding to a plurality of first graphical user interface elements displayed on a first graphical user interface, the first admin-console context including a plurality of first admin-console portlet state attributes corresponding to the plurality of first graphical user interface elements;
- recording, in a memory area subsequent to capturing the first admin-console context, a plurality of events that occur on the first graphical user interface corresponding to the plurality of first graphical user interface elements;
- storing a first Reusable User Interaction (RUI) Script, which includes the captured first admin-console context and the recorded plurality of events, in a library that includes a plurality of RUI scripts;
- capturing a second admin-console context in response to receiving an assistance request, wherein the second admin-console context corresponds to a plurality of second graphical user interface elements, the second admin-console context including a plurality of second admin-console portlet state attributes corresponding to the plurality of second graphical user interface elements;
- analyzing the second admin-console context against a plurality of admin-console contexts corresponding to each of the plurality of RUI Scripts, wherein the plurality of RUI Scripts includes the first RUI script, the analyzing further comprising:
- matching a set of child elements included in the second admin-console context to a plurality of sets of child elements each included in the plurality of admin-console contexts corresponding to the plurality of RUI Scripts, wherein each child element in the set of child elements corresponds to one of the plurality of admin-console portlet state attributes, and the analyzing is performed by processing a radix-tree corresponding to the set of child elements included in the first second admin-console context;
- and
- computing a score based on the matching of the set of child elements that signifies a number of matching child elements;
- identifying the first RUI script based on the analysis;
- and
- executing the first RUI script in response to the identifying.