question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to stop protractor from closing the session & the browser?Is there a way to store the sessionId to a file in the first run and when we again run the tests, it should pick up the session from the file?

See original GitHub issue

Hi there!

Bug report

  • Node Version: 8.9.4
  • Protractor Version: 5.1.2 Latest version gives same output
  • Angular Version: 1.4.8
  • Browser(s): Chrome
  • Operating System and Version Mac OS 10.13
  • My protractor configuration file var multicapabilities=[{ browserName: ‘chrome’, name: process.env.SUMO_ENV+ ‘:chrome’, shardTestFiles: false, maxInstances: 100, idleTimeout: 600000, takesScreenshot:true, extendedDebugging : true, directConnect: false, seleniumAddress: “http://localhost:4444/wd/hub”, seleniumSessionId: “027ed4e0371e084cc5ae3929b711702e” }];

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rahulpatidar0191commented, Feb 14, 2019

@smathur96 Hi Samarth, did you find a way to do this?

1reaction
simonuacommented, May 22, 2018

My apologies. I didn’t read and interpret “rerun” correctly in your first reply. I can’t think of a way to do this, I’m afraid.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to stop automatically closing browser when writing ...
js file run by using tag --seleniumSessionId in command line. Solution: Go to ..\AppData\Roaming\npm\node_modules\protractor\built where your ...
Read more >
A complete list of different Protractor Browser Commands
This tutorial covers various Protractor Browser Commands with syntax and code examples for beginners to start with Protractor.
Read more >
Setting up your own test automation environment
We will cover writing and running Selenium tests using Node.js, ... Save and close this file, then restart your Terminal/command prompt to ...
Read more >
Moon - A cross browser Selenium, Cypress, Playwright and ...
A Selenium, Cypress, Playwright and Puppeteer testing platform running in ... For example Moon 1.x browsers list file is stored in Kubernetes config...
Read more >
Debugging Options for Selenium Testing | BrowserStack Docs
Debugging Options. You can use various logging options to debug your failed test cases and fix them with ease. This document explains the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found