public static function combine($selector1, $selector2)
    {
        $selectors = func_get_args();
        foreach ($selectors as $k => $v) {
            $selectors[$k] = self::toXPath($v);
            if (!$selectors[$k]) {
                throw new \Exception("$v is invalid CSS or XPath");
            }
        }
        return implode(' | ', $selectors);
    }
public static function combine($selector1, $selector2)
    {
        $selectors = func_get_args();
        foreach ($selectors as $k => $v) {
            $selectors[$k] = self::toXPath($v);
            if (!$selectors[$k]) {
                throw new \Exception("$v is invalid CSS or XPath");
            }
        }
        return implode(' | ', $selectors);
    }
public static function combine ( $ selector1 , $ selector2 ) { $ selectors = func_get_args ( ) ; foreach ( $ selectors as $ k => $ v ) { $ selectors [ $ k ] = self :: toXPath ( $ v ) ; if ( ! $ selectors [ $ k ] ) { throw new \ Exception ( "$v is invalid CSS or XPath" ) ; } } return implode ( ' | ' , $ selectors ) ; }
Applies OR operator to any number of CSS or XPath selectors.
You can mix up CSS and XPath selectors here.

```php
<?php
use \Codeception\Util\Locator;

$I->see('Title', Locator::combine('h1','h2','h3'));
?>
```

This will search for `Title` text in either `h1`, `h2`, or `h3` tag.
You can also combine CSS selector with XPath locator:

```php
<?php
use \Codeception\Util\Locator;

$I->fillField(Locator::combine('form input[type=text]','//form/textarea[2]'), 'qwerty');
?>
```

As a result the Locator will produce a mixed XPath value that will be used in fillField action.

@static

@param $selector1
@param $selector2

@throws \Exception

@return string
Applies OR operator to any number of CSS or XPath selectors . You can mix up CSS and XPath selectors here .