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

browser.pause in beta using protractor cucumber framework #4394

Closed
sriparnam opened this issue Jul 19, 2017 · 2 comments
Closed

browser.pause in beta using protractor cucumber framework #4394

sriparnam opened this issue Jul 19, 2017 · 2 comments

Comments

@sriparnam
Copy link

Hi there!

I have used protractor cucumber framework. In step definition file I have a browser.pause() which seems to fail at command line execution. Please find zip of protractor config and cucumber feature & step definition file attached.

This is the error that comes up:

2 scenarios (2 passed)
8 steps (8 passed)
0m00.016s
[19:23:49] I/protractor -
[19:23:49] I/protractor - Encountered browser.pause(). Attaching debugger...
[19:23:49] I/protractor -
[19:23:49] I/protractor - ------- WebDriver Debugger -------

[19:23:49] I/protractor - Starting WebDriver debugger in a child process. Pause is still beta, please report issues at github.com/angular/protractor

[19:23:49] I/protractor -
[19:23:49] I/protractor - press c to continue to the next webdriver command
[19:23:49] I/protractor - press ^D to detach debugger and resume code execution
[19:23:49] I/protractor -
[19:23:50] I/launcher - 0 instance(s) of WebDriver still running
[19:23:50] I/launcher - chrome #1 passed

featuretest.zip

@wswebcreation
Copy link
Contributor

Hi there!

When I look at your code I think you are missing 2 things:

  1. In your step file you don't have a callback / return a promise. That is why the tests succeed before your are doing anything, see here for the step implementation
  2. If you want to use the browser.pause(); you should place it within a step, not outside the step.

Because your issue involves usage and debugging it is better to ask your question on StackOverflow or Gitter in the future. Please ask a question there with the 'protractor' tag or post in the Gitter Channel to get help.

From the getting help section of the README.

Please ask usage and debugging questions on StackOverflow (use the "protractor" tag) or in the Angular discussion group. (Please do not ask support questions here on Github.)

I'm going to close the issue for now.

Thanks!

@sriparnam
Copy link
Author

sriparnam commented Jul 20, 2017 via email

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

No branches or pull requests

2 participants