Instantly share code, notes, and snippets.

Embed
What would you like to do?
Protractor Stacktrace
C:\protractor_fun\blah_test> protractor conf.js
[11:48:22] I/launcher - Running 1 instances of WebDriver
[11:48:22] I/hosted - Using the selenium server at http://localhost:4444/wd/hub
Started
F
Failures:
1) Blah Items should have appropriate items on node 1
Message:
Failed: Unexpected identifier
Stack:
C:\protractor_fun\blah_test\loginPage.es6:3
let blah1 = element(by.xpath('.//span[text()="blah1"]/../../div[1]/div/div/div/button/span[t
ext()=" BLAH1 "]'));
^^^^^^^^^^^^^
SyntaxError: Unexpected identifier
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at burkartTest (C:\protractor_fun\blah_test\spec.js:33:25)
From: Task: Run it("should have appropriate items on node 1") in control flow
at UserContext.<anonymous> (C:\Users\rhicks\AppData\Roaming\npm\node_modules\protractor\node_modules\jasminewd2\
index.js:94:19)
at C:\Users\rhicks\AppData\Roaming\npm\node_modules\protractor\node_modules\jasminewd2\index.js:64:48
at ControlFlow.emit (C:\Users\me\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver
\lib\events.js:62:21)
at ControlFlow.shutdown_ (C:\Users\me\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webd
river\lib\promise.js:2565:10)
at shutdownTask_.MicroTask (C:\Users\me\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-we
bdriver\lib\promise.js:2490:53)
From asynchronous test:
Error
at Suite.<anonymous> (C:\protractor_fun\blah1_test\spec.js:58:5)
at Object.<anonymous> (C:\protractor_fun\blah1_test\spec.js:5:1)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment