def in_(self, other):
        other = _get_variable_value(other)
        assert self.is_css == other.is_css, "Both locators must be of same type"
        if self.is_css:
            return Element(other.locator + " " + self.locator[len('css='):])
        elif self.is_xpath:
            return Element(other.locator + self.locator)  # FIXME might fail for advanced xpath