selenium-html-js-converter phantomJS help

24 views
Skip to first unread message

manoflinux

unread,
Sep 29, 2017, 10:45:02 AM9/29/17
to phantomjs
I am trying to use  selenium-html-js-converter  to take a very simple selenium IDE test convert it to nodeJS and run it. 
It should be using phatomJS to run the test, thats the reason I am posting this here, I thought someone here might had used this nodJS module. 
The conversion seems to work with no errors, but when I try to run the output I get this. 

"../node-v6.11.3-linux-x64/bin/node ./run.js
/home/james/node_modules/make-sync/node_modules/fibers/future.js:280
throw(ex);
^ Error: Failure in Selenium command "type("id=uh-search-box", "selenium")": [elementById("uh-search-box")] Not JSON response (Screenshot was saved to screenshots/test_outfile/Exce...@type.png)
at exports.newError (/home/james/node_modules/wd/lib/utils.js:139:13)
at /home/james/node_modules/wd/lib/callbacks.js:56:17
at /home/james/node_modules/wd/lib/webdriver.js:169:5
at Request._callback (/home/james/node_modules/wd/lib/http-utils.js:78:7)
at Request.self.callback (/home/james/node_modules/wd/node_modules/request/request.js:121:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request.<anonymous> (/home/james/node_modules/wd/node_modules/request/request.js:985:14)
at emitOne (events.js:101:20)
at Request.emit (events.js:188:7)
at IncomingMessage.<anonymous> (/home/james/node_modules/wd/node_modules/request/request.js:936:12)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)"

I have tried a couple of tests, different versions of nodeJS and all get the same error. any ideas? 
I am including the convert script I used and the run script and the output file that is used by the run script. 
sorry I had problems posting the files.to this group so I made a handy pastebin with everything but the actual output but you can recreate it from the files I include in the paste. if you need the output as well I can provide that. 

https://pastebin.com/tusnF1WN

Reply all
Reply to author
Forward
0 new messages