Step 1:
Press the shift key on your keyboard and click on the elements you want to group one by one, click on the group checkbox under group settings in the panel on the right of your screen to group the elements into one.
Step 2:
You can also click on the background of the canvas and drag your cursor over all the elements on the canvas to select it all in on go.