selection_properties.go
func (s *Selection) Text() (string, error) {
	selectedElement, err := s.elements.GetExactlyOne()
	if err != nil {
		return "", fmt.Errorf("failed to select element from %s: %s", s, err)
	}

	text, err := selectedElement.GetText()
	if err != nil {
		return "", fmt.Errorf("failed to retrieve text for %s: %s", s, err)
	}
	return text, nil
}
func (s *Selection) Text() (string, error) {
	selectedElement, err := s.elements.GetExactlyOne()
	if err != nil {
		return "", fmt.Errorf("failed to select element from %s: %s", s, err)
	}

	text, err := selectedElement.GetText()
	if err != nil {
		return "", fmt.Errorf("failed to retrieve text for %s: %s", s, err)
	}
	return text, nil
}
// Text returns the entirety of the text content for exactly one element.