SelectorInterface.php 609 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /*
  3. * This file is part of the Mink package.
  4. * (c) Konstantin Kudryashov <ever.zet@gmail.com>
  5. *
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. namespace Behat\Mink\Selector;
  10. /**
  11. * Mink selector engine interface.
  12. *
  13. * @author Konstantin Kudryashov <ever.zet@gmail.com>
  14. */
  15. interface SelectorInterface
  16. {
  17. /**
  18. * Translates provided locator into XPath.
  19. *
  20. * @param string|array $locator current selector locator
  21. *
  22. * @return string
  23. */
  24. public function translateToXPath($locator);
  25. }