Ok, so it is not a page, maybe an element, so unsure if 'element' is maybe easier to reuse here but then you could either phrase it similar to mink extension, or reuse things like:
https://github.com/Behat/MinkExtension/blob/2.0/src/Behat/MinkExtension/Context/MinkContext.php#L302