[js] expose withLocator method at the top level
@@ -807,6 +807,7 @@ exports.Builder = Builder
exports.Button = input.Button
exports.By = by.By
exports.withTagName = by.withTagName
+exports.withLocator = by.withLocator
exports.Capabilities = capabilities.Capabilities
exports.Capability = capabilities.Capability
exports.Condition = webdriver.Condition
