-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Element Explorer totally unresponsive #4011
Comments
Happening to me also. Any thoughts ? Here is the console: c:>protractor --troubleshoot --elementExplorer
..... nothing happens here..... |
Same problem here! |
Same. Node Version: |
Has anyone found a solution or workaround? |
Yes, I would like to know if there is a solution or work around. Same problem here. Node Version: 6.9.4 |
Same here: no response after entering any command.. I'm at |
So I see the problem is only in windows, do a test in Ubuntu and the problem does not occur. Bug Report
Try Elementor but I do not like it very much |
I have the same problem. If anyone found the solution please share.
|
When will this be fixed for Windows? |
Why is it taking such a long time (3 months now) to even get a reaction? This is not working at all on windows... Of course I have the exact same issue, what could be causing this? |
Hi; sorry, this is new to me. The reality is that while people are still here and helping out, mostly with the tracker, it's just me doing serious work in the system at the moment, and I'm newer to the project than this issue is - and I've been buried in some changes to buffer the impending deprecation of features by 3rd-party dependencies; ideally without breaking the types of TypeScript users, in a phased approach. It looks like the issue was submitted by testing in the CMD prompt; have any of you tried doing this in PowerShell? In Git's Bash shell? Have any of you tried doing this in the Ubuntu Bash shell in Windows 10 with dev-mode turned on? |
@seanmay I tried it in powershell and ConEmu in windows. ElementExplorer, completely hangs upon typing any command |
Is it also possible to test in Git's Bash? I'm trying to discern whether this is a filepath / separator / et cetera issue... beyond that, I still need to figure out where to look; ideally, not before I know what I'm looking for. |
Git bash has the same issue...
|
Okay, so general Windows issue... |
Are we all talking about AngularJS (1.X)? |
I'm not, but I don't think that matters. Just firing up elementExplorer
and then pressing tab or any command doesn't work. Pressing return after a
command just adds a newline instead of executing it.
|
In my case, pressing tab or any command just makes the elementExplorer unresponsive, it doesn't go to a new line. |
But by this time, Protractor will have attempted to load and inject itself onto the page. Tabbing or accessing elements might well be inconsequential in that regard, if there are promises where the error gets swallowed, or similar. |
@seanmay This used to work earlier, pressing Tab displayed command suggestions/auto complete options. |
I am tabbing and getting auto-completion options, in Windows 10. I'm also getting hanging and the Node subscription error, after hitting newlines multiple times. I'm also getting it on Angular (4.X), I have yet to test it on AngularJS. |
I had the same problem and I have tried to debug it. When running element explorer like this:
If that expression had been correctly evaluated then the debugger would hit the breakpoint and _onbreak callback (definied in commandRepl.js above) would be executed displaying some results. Unfortunately, I do not know enough about javascript to figure out why there is "No frames" error. What's more protractor uses nodejs' _debugger which uses deprecated v8 json debugger protocol, so there isn't much documentation I could find. Nodejs has lately moved on from that debugger, so this might be a change worth looking into. Anyway, I hope this will help in finding out why the element explorer is not working. Anyone, that has this problem might try to use the snippet I provided to find out if they have the same "No frames" error. |
I've done a little more digging, and it looks like there are permission errors opening the selenium.jar file, which depending on how Protractor was run (and the state of the rest of your box) might well be the underlying culprit. |
I've also done some tests... When I run the node debugger, create a client and let it connect to itself then it works:
Running protractor
and then doing the exact same thing as before from another cmd window:
So, in some way, running the debugger server through protractor works different from running it separately? |
I don't know how this would look on a working system, but it appears that the VM is still running after the request so it hasn't hit a break point (and therefore also doesn't have any frames?). In fact it looks like it only hits an initial breakpoint (maybe when attaching the debugger?) and then issues a reqContinue. Isn't it supposed to end up in a breakpoint each time? |
Ok, @seanmay, I finally found it ... debuggerCommons contains this function: exports.setEvaluateBreakpoint = function(client, cb) {
client.setBreakpoint({
type: 'scriptRegExp',
target: 'built/breakpointhook\.js', //jshint ignore:line
line: 2
}, function(err, response) {
if (err) {
throw new Error(err);
}
cb(response.breakpoint);
});
}; Unfortunately the regex for the script doesn't work on windows ... removing 'built/' makes elementExplorer work as expected! |
@heathkit It doesn't work ... are you sure the path.join correctly escapes that part for usage in a regex? |
Right, of course it doesn't. I'll take another look at it later and see how important it is that we include 'built/' and whether we can just drop it. |
@woppa684 : Thank you so much for the fix. It works 👍 |
@heathkit I haven't returned to it to validate it on the PC, but I believe something like:
ought to work. Same deal for "lib/http.js". |
Thanks @seanmay, yeah I think that'll do it. I still want to understand element explorer a little bit better and where these paths originally came from, but I'll probably end up doing a fix like that. Thanks for your patience everyone! We're planning on doing a 5.1.2 release tomorrow, and the fix for this should be included. |
7.4.0
5.0.0
Chrome
Windows 7 64bit
I'm following the guide here for setting up a REPL, which says to run protractor thusly:
protractor --elementExplorer
. I do this, it launches a Chrome window, shows output in the console that suggests everything worked (e.g. "server started...", "debugger listening.."), and leaves me at a prompt (>
).Nothing I type in this prompt produces any effect/response at all. I tried the examples given, such as
browser.get('http://www.angularjs.org')
, but pressing ENTER simple adds a carriage return to the screen and nothing else. I can keep hitting ENTER and the cursor keeps dropping down a line, but there is no response from protractor, nothing happens in the browser, etc. The only thing that produces a response is CTRL+C or CTRL+D, which serve to let me know the process is still running but that's about it.Note, if I keep trying to enter commands (they just pile up with no response), I eventually get this:
(node:3012) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 break listeners added. Use emitter.setMaxListeners() to increase limit
The text was updated successfully, but these errors were encountered: