Locates the Item in the Clipboard that matches the passed in Item Name and clicks on the matching Clipboard action for that item. E.g, using above example, finds the Item called 'CopySpace' and clicks the 'Paste Item' action.
Get the Row in the Clipboard that contains the item that matches the passed in Item Name
If the Row is '-1' (the item was not found in the Clipboard)
Log a fail on the Item in the Results report
Otherwise (item was found in the Clipboard)
Log a Pass on the Item in the Results report
Get the number of columns for the matching row (currently the actions are in the last column)
Get the list of Images in the matching row's last column (the clipboard actions are all clickable images)
Itterate through the images checking for a match between the Image's ALT text and the passed in Clipboard Action
Performs the specified Space Action on the specified Space Name in the Browse View, and returns the Result. The action will attempt to find the specified Space Name on the page and if it can't be found it will navigate to the next page (if there are any) until it either finds the Space Name or get's to the end of the spaces.
E.g click the View Details action on the space MySpace.
This action uses descriptive programming to locate the Space. The reason behind this is that the Actions for spaces are identifiable (e.g. 'View Details'), but they are not unique - there is one for every space shown in the Browse Spaces display.
However, the Spaces and their Actions are all contained within their own WebTable within the Browse Spaces table.
The WebTable is named after the Space it is for, so for the above example the WebTable is called 'CutSpace'. So, we can find this WebTable knowing the Space Name we are looking for, without it having to reside in the Object Repository.
Once we have located the correct WebTable, to perform an action on it we need to get some details about the Cells that are in the WebTable, namely the Cell that contains the Actions. As you can see from the image below, the Actions are contained in the Cell that is in the last Row (can be Row 3 or Row 4 if the Space has a Description) and the last Column (currently always column 2).
With this information, we can get the list of Images in the Cell that contains the Actions. The Images all have defined ALT text that matches the Action, so we can just itterate through the Images until we find one whose ALT text matches the required Space Action and Click on it.
However, the Actions contained in the More dropdown menu are all Links with associated Images, but the Images are not Clickable - only the Links are. So, if we have got to the More menu Image before we have found the Action we want to perform, the More menu is opened and then the list of Links are obtained. These Links are again named after the Action they are for, so these are itterated through until a match is found and this is Clicked on.
Performs the specified Content Action on the specified Content Item in the Browse View, and returns the Result. The action will attempt to find the specified Content Item on the page and if it can't be found it will navigate to the next page (if there are any) until it either finds the Content Item or get's to the end of the spaces. If it detects that it isn't starting its search on the first page it will navigate to the first page before it starts looking for the Content Item.
If a Negative check is performed it will return a pass if either the Content Item or the requested Action is NOT found (e.g. so that Locked documents can be checked to ensure they do not have the Actions that a non-locked document will have such as 'check out', or to check that the 'Working Copy' no longer exists after a 'Check In')
E.g click the Check Out action on the Content Item 'MyContent'.
This action uses the descriptive programming techniques described in the 'BSSpaceActions' reusable action.
The Return values for a normal (positive) test are:
'1' = Content found and Action performed (pass) '0' = Content not found or Action not performed (fail)
The Return values for a negative test are are:
'1' = Content found and Action performed (fail) '0' = Content not found or Action not performed (pass)