Skip to content

TypeError [ERR_UNESCAPED_CHARACTERS]: Request path contains unescaped characters #14

Description

@mvasin

I cloned the repo, downloaded selenium standalone server from https://www.seleniumhq.org/download/, did export SELENIUM='/full/path/to/selenium-server-standalone-3.141.0.jar', replaced USERNAME and ACCESS_KEY in BrowserStackRemoteUnit.js with my credentials, did npm init -y && npm add mocha and finally ./node_modules/.bin/mocha mocha/BrowserStackRemoteUnit.js.

After that I get

  Google Search
    1) should append query to title


  0 passing (18s)
  1 failing

  1) Google Search
       should append query to title:
     TypeError [ERR_UNESCAPED_CHARACTERS]: Request path contains unescaped characters
      at new ClientRequest (_http_client.js:114:13)
      at Object.request (http.js:41:10)
      at sendRequest (node_modules/browserstack-webdriver/http/index.js:91:22)
      at HttpClient.send (node_modules/browserstack-webdriver/http/index.js:72:3)
      at webdriver.http.Executor.execute (node_modules/browserstack-webdriver/lib/webdriver/http/http.js:87:16)
      at /Users/mvasin/playground/testing/browserstack/automate-node-samples/node_modules/browserstack-webdriver/executors.js:39:16
      at /Users/mvasin/playground/testing/browserstack/automate-node-samples/node_modules/browserstack-webdriver/lib/goog/base.js:1178:15
      at webdriver.promise.ControlFlow.runInNewFrame_ (node_modules/browserstack-webdriver/lib/webdriver/promise.js:1598:20)
      at notify (node_modules/browserstack-webdriver/lib/webdriver/promise.js:428:12)
      at webdriver.promise.Promise.then (node_modules/browserstack-webdriver/lib/webdriver/promise.js:478:7)
      at DeferredExecutor.execute (node_modules/browserstack-webdriver/executors.js:38:14)
      at Object.webdriver.promise.checkedNodeCall (node_modules/browserstack-webdriver/lib/webdriver/promise.js:677:5)
      at /Users/mvasin/playground/testing/browserstack/automate-node-samples/node_modules/browserstack-webdriver/lib/webdriver/webdriver.js:237:34
      at /Users/mvasin/playground/testing/browserstack/automate-node-samples/node_modules/browserstack-webdriver/lib/goog/base.js:1178:15
      at webdriver.promise.ControlFlow.runInNewFrame_ (node_modules/browserstack-webdriver/lib/webdriver/promise.js:1598:20)
      at notify (node_modules/browserstack-webdriver/lib/webdriver/promise.js:428:12)
      at webdriver.promise.Promise.then (node_modules/browserstack-webdriver/lib/webdriver/promise.js:478:7)
      at Function.webdriver.WebDriver.executeCommand_ (node_modules/browserstack-webdriver/lib/webdriver/webdriver.js:235:7)
      at /Users/mvasin/playground/testing/browserstack/automate-node-samples/node_modules/browserstack-webdriver/lib/webdriver/webdriver.js:273:32
      at webdriver.promise.ControlFlow.runInNewFrame_ (node_modules/browserstack-webdriver/lib/webdriver/promise.js:1598:20)
      at webdriver.promise.ControlFlow.runEventLoop_ (node_modules/browserstack-webdriver/lib/webdriver/promise.js:1463:8)
  ==== async task ====
  WebElement.sendKeys([object Object])
      at webdriver.WebDriver.schedule (node_modules/browserstack-webdriver/lib/webdriver/webdriver.js:267:15)
      at webdriver.WebElement.schedule_ (node_modules/browserstack-webdriver/lib/webdriver/webdriver.js:1609:23)
      at webdriver.WebElement.sendKeys (node_modules/browserstack-webdriver/lib/webdriver/webdriver.js:1770:15)
      at Context.<anonymous> (mocha/BrowserStackRemoteUnit.js:24:48)
      at webdriver.promise.ControlFlow.runInNewFrame_ (node_modules/browserstack-webdriver/lib/webdriver/promise.js:1598:20)
      at webdriver.promise.ControlFlow.runEventLoop_ (node_modules/browserstack-webdriver/lib/webdriver/promise.js:1463:8)
  ==== async task ====
      at Context.<anonymous> (node_modules/browserstack-webdriver/testing/index.js:126:14)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions