Get the range from the selection

Test passes if the word "PASS" appears below.

Test result:
FAIL