def _concat_xpath_from_str(text: str) -> str:
    """Take a string and splice it into an xpath concat locator.

    Arguments:
        text (str): Text block to scan.

    Returns:
        str
    """
    concat_text = _recurse(
        text,
        split_on='"',
        wrapper="'{}',",
        replacer="'\"',",
    )
    return f'//*[text()=concat({concat_text} "")]'
Take a string and splice it into an xpath concat locator.

    Arguments:
        text (str): Text block to scan.

    Returns:
        str
    
splinter/driver/xpath_utils.py