added frame selection by element and tests for frame selection by name and frameCount