4

In a list-type page (list, listpart, worksheet, etc) you can select multiple records by using shift+click or ctrl+click. However, this behavior cannot be replicated in automated tests. The TestPage object does not contain a method for selecting the currently active row.


I would expect a .Select() procedure something like the one I made up below. Currently, this is not the case, so I cannot mimic line selection behavior.

[ModalPageHandler]
procedure ReqWorksheetCheckModalHandler(var ReqWorksheet: TestPage "Req. Worksheet");
var
   Index: Integer;
begin
   ReqWorksheet.First();
   ReqWorksheet.Select(); // AL0132: TestPage Req. Worksheet' does not contain a definition for 'Select'
   ReqWorksheet.Next();
   ReqWorksheet.Select(); // AL0132: TestPage Req. Worksheet' does not contain a definition for 'Select';
end;


Category: Development
STATUS DETAILS
Needs Votes
Ideas Administrator

Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team