Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Browser quits right after opened with ElementExplorer #2228

Closed
maeriens opened this issue Jun 9, 2015 · 6 comments
Closed

Browser quits right after opened with ElementExplorer #2228

maeriens opened this issue Jun 9, 2015 · 6 comments

Comments

@maeriens
Copy link

maeriens commented Jun 9, 2015

When I start the elementExplorer with Protractor, somehow the browser (either Chrome or Firefox) appear onscreen for a split second, and then shuts down.

Here is a short video where I use --troubleshoot. (I'm on W7 x64) using

protractor --elementExplorer http://www.angularjs.org

Console reaches 'listening on port ####' and hangs if I use

node ./bin/elementexplorer.js http://www.angularjs.org

I know about the issue in #1890; but as I cannot start and take control of the browser, I think this is a different issue.
Will try downgrading Protractor/Node later on today and will post if anything changes.

Updates:
Note: Downgraded Node by removing it and reinstalling from scratch.

Update # Node NPM Protractor Issue
0 0.12.3 2.9.1 2.1.0 Browser closes itself
1 0.12.3 2.9.1 1.6.1 Browser closes itself
2 0.10.30 1.4.21 1.7.0 Browser closes after console input
3 0.10.30 1.4.21 1.6.1 ECONNREFUSED
4 0.10.30 1.4.21 1.6.1 Work? (see below)
5 0.12.4 2.10.1 2.10.1 Work? (see below) + small change + #1970

1st Update:

Seems to be an issue with W7/W8. A test on Ubuntu 14.10 with

  • Node: v0.12.3
  • Npm: 2.9.1
  • Protractor: 2.0.0
    seems to be working as expected, somehow.

3rd Update:

For the 3d row, I had to use the node ./protractor/bin[...] command as protractor --elementExplorer is not available


4th update

Found out via

npm ls -depth=0 I have protractor@2.0.0;

And by

npm ls -g -depth=0 I have protractor@1.6.1;

Running node ./protractor/bin[...] seems to work OK now.
Weird thin is if I run the command above, it tells me to better use protractor --elementExplorer ...which is not available. (this because I have the 2.0.0, I guess)


5th Update:

Entered full update mode. Seems to work, but:

  • protractor --elementExplorer will shut down browser after a jiffy onscreen.
  • If I enter node ./protractor/bin[...] + urL, console will get to 'Listenting to port....' and hang. If I don't, it opens a browser.
  • Commands not sent due to console cutting first letter.
  • If I send, for instance, abrowser.get('http://....'); , works. As long as I add the char that will be 'eaten' by the console, I'm saved.
  • Sending url directly with no http:// prefix will return timeout (might be expected behaviour?)

Will continue to investigate around jic.

@hankduan
Copy link
Contributor

Sorry I'm not certain what exactly the issue is at the moment. Can you run protractor 2.1.0 with node 0.10.30, and let me know what you see going wrong?

@maeriens
Copy link
Author

Sorry I'm having a really loaded month, will try today or tomorrow when I have some free time.

@maeriens
Copy link
Author

maeriens commented Jul 1, 2015

@hankduan works exactly like row no.4 of the table

@gopandago
Copy link

I've experienced the same issue but I think it's protractor 2.1.0 issue.
I'm using the following settings and confirmed the test and the elementExplorer works:

NodeJs: 0.10.30 (don't use latest 0.12.0)
Selenium-server: 2.46.0 (latest one)
Selenium-webdriver: 2.46.1 (latest one)
Selenium-server-standalone: 2.46.0 (latest one)
Chromedriver: 2.16.0 (latest one)
Protractor: 2.0.0 (or 1.8.0 if you have older test code syntax)

@ron23
Copy link

ron23 commented Aug 20, 2015

Same issue here with latest versions of protractor stuff, and node 0.12.2
Update: updated Node to 0.12.7 - issue gone
update2: actually it's not gone. I solved it by waiting for the window to open, wait a sec, then ctrl+shift+i to open chromeDevTools. Somehow it doesn't close the chrome window that way. and I can pass commands from the terminal.

@juliemr
Copy link
Member

juliemr commented Sep 30, 2015

I believe this is stale, it's working fine as far as I can tell at the moment.

Closing stale issues. Please open a new issue if you feel there is still a general bug.

@juliemr juliemr closed this as completed Sep 30, 2015
@hankduan hankduan removed their assignment Nov 4, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants