def METHOD_NAME(self):
    """Verify that the locate_element function translates the
    locator and calls SeleniumLibrary.get_webelement with the
    translated locator.
    That is to say, this verifies that our registered locators
    are actually usable with Selenium keywords.
    """
    locator = "foo.bar.hello:world"
    parent = mock.Mock()
    tag = ""
    constraints = {}
    with mock.patch(
        "robot.libraries.BuiltIn.BuiltIn.get_library_instance",
        side_effect=mock_get_library_instance,
    ):
        locate_element("test", parent, locator, tag, constraints)
        mock_libs["SeleniumLibrary"].get_webelements.assert_called_with(
            "//span[text()='Hello, world']"
        )