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

Protractor pause() debug mode does not work for cucumber framework #1790

Closed
jlin412 opened this issue Feb 7, 2015 · 11 comments
Closed

Protractor pause() debug mode does not work for cucumber framework #1790

jlin412 opened this issue Feb 7, 2015 · 11 comments
Labels
Milestone

Comments

@jlin412
Copy link

jlin412 commented Feb 7, 2015

I am testing with 1.6.0 and 1.6.1 protractor with cucumber.js 0.4.7 on mac.
When I use browser.pause(), it will pause the test but will not take any command

------- WebDriver Debugger -------
 ready

press c to continue to the next webdriver command
press d to continue to the next debugger statement
type "repl" to enter interactive mode
type "exit" to break out of interactive mode
press ^C to exit

-- WebDriver control flow schedule 
 |- waiting for debugger to attach
 |---at World.<anonymous> (/.../features/step_definitions/common_steps.js:29:37)
 |- WebDriver.getTitle()
 |---at World.<anonymous> (/.../features/step_definitions/common_steps.js:30:13)
wd-debug> repl
c
d
exit
^CROSELCXB0073323:redbox_angular linj$ 

The only command will work is ^C but it will terminate the test instead of continue to finish the rest of steps and scenarios. I would like to see 'repl' and '^C' to work with cucumber framework.

@hankduan
Copy link
Contributor

hankduan commented Feb 8, 2015

Can you test jasmine quickly to see if the issue is with your environment+pause or cucumber+pause?

just do something like

describe('foo', function() {
  it('bar', function() {
    browser.get('http://www.angularjs.org');
    browser.pause();
    $('html').getText().then(console.log);
  };
});

@jlin412
Copy link
Author

jlin412 commented Feb 9, 2015

I tested jasmine code and it is working for jasmine version.
It seems that it is only not working for cucumber+pause.

@okcompute
Copy link

I have the same issue with pause() on OS X Yosemite (10.10.3). I'm not using cucumber. Just trying to use pause() while going over the Angular tutorial.

Note: I modified the tutorial to use latest protractor version(1.8.0). I had to because of another issue with chromedriver pointing to a Windows executable (i.e. "chromedriver.exe").

@ctrees
Copy link

ctrees commented Mar 21, 2015

I just ran into the same issue.
OSX 10.10.2

protractor --version
Version 1.6.1

node --version
v0.12.0

cucumber-js --version
0.4.7

@hankduan
Copy link
Contributor

I think this issue is also a dup of this (#1890). Can everyone who encountered this issue confirm that they are using node > 0.10.30?

@ctrees
Copy link

ctrees commented Mar 21, 2015

Thanks @hankduan I'll attempt the downgrade you suggested on refer link and post back to that and this link as soon as I get a chance

@henrygrover
Copy link

@hankduan I can confirm. Reverting from node 0.10.35 to 0.10.30 corrected the problem.

@hankduan
Copy link
Contributor

Thanks for confirmation. I'm going to close this issue. Please track here: #1890

@henrygrover
Copy link

@hankduan Hate to do this to you, but the problem seems to be back now, even in 0.10.30. Not sure what changed to cause it.

[root@localhost test]# nvm use 0.10.30
Now using node v0.10.30
[root@localhost test]# nvm ls
->     v0.10.30
       v0.10.35
default -> 0.10.35 (-> v0.10.35)
stable -> 0.10 (-> v0.10.35) (default)
[root@localhost test]# protractor protractor-conf.js --specs features/FileUpload.feature 
Starting selenium standalone server...
[launcher] Running 1 instances of WebDriver
Selenium standalone server started at http://192.168.1.103:36685/wd/hub
.Hit SIGUSR1 - starting debugger agent.
debugger listening on port 5858
Starting WebDriver debugger in a child process. Pause is still beta, please report issues at github.com/angular/protractor

------- WebDriver Debugger -------
 ready

press c to continue to the next webdriver command
press d to continue to the next debugger statement
type "repl" to enter interactive mode
type "exit" to break out of interactive mode
press ^C to exit

repl
c
d
exit
^C[root@localhost test]#

@jonricaurte
Copy link

Yep, this is happening again. Wonder if it has anything to do with updating to the latest version of webdriver.

@solcre
Copy link

solcre commented Aug 5, 2015

This happens to me on:

Ubuntu 14.04
Node: 0.12.3
Protractor: 2.0.0
Cucumber: 0.4.9

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

8 participants