Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mvasin opened this issue Nov 4, 2018 · 0 comments

Comments

@mvasin
Copy link

mvasin commented Nov 4, 2018

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant