I have one suggestion to create dictionary with mapping and use it instead of hardcoded class names. What do you think?
Example:
```python
class_names = {
  'closed_captions': '.closed .subtitles',
  'captions':  '.subtitles',
  'error_message':  '.video .video-player h3',
  'video_container': '.video',
  ...
}
```
Then use it so:
```python
is_open = not self.q(css=class_names['closed_captions']).present
```
What do you think?