Comments (9)
Hmmm. Not clear what you're asking for.
I believe in all OS's the current behavior is to launch a single new window with a tab of the provided URL.
What difference in behavior are you asking for?
from chrome-launcher.
is there a way to open a new tab in an existing window?
from chrome-launcher.
Target.createTarget in the protocol.
from chrome-launcher.
Paul that is really cool - my point with this issue is this surely must be a common need and it should go in the readme, no??
from chrome-launcher.
@ORESoftware there seems to be some confusion around the goals of chrome-launcher which is just to launch the Chrome browser as opposed to control/instruct the browser to do things which is the goal of projects like puppeteer.
PR welcome for the best way to nudge folks over to puppeteer in the docs if they want this sort of thing :)
from chrome-launcher.
ok guys, I am not sure what I am missing here - I strongly assume that many users will want to launch the browser, either in a new window, or as a tab in an existing window. All I am talking about is allowing the user to control whether the new browser is launched as a tab in existing window or new window...
from chrome-launcher.
Perhaps the confusion is the concept of "launched as a tab in existing window".
If you already have Chrome launched, I'm not sure why you need chrome-launcher? You already have completed the only step that chrome-launcher helps you with. Just connect to the existing Chrome instance with puppeteer/websocket/CRI/whatever and create a new target.
from chrome-launcher.
@ORESoftware chrome-launcher on its own doesn't do much. it gets the executable running and exposes the remote debugging port. interaction beyond that MUST be done with the protocol, typically through either chrome-remote-interface or with puppeteer.
I could imagine there's a line in the readme like:
Interacting with or controlling the page or browser must be done with the devtools protocol, typically via chrome-remote-interface. (Puppeteer is also good, but has it's own chrome launching mechanism).
from chrome-launcher.
ok thanks, I guess I am indeed missing some information, thanks for the info, I haven't tried puppeteer yet, but I guess I should
from chrome-launcher.
Related Issues (20)
- sandbox utility bwrap remains open after kill or killall HOT 1
- how to start chrome in kiosk mode? HOT 1
- process.env.PROGRAMFILES is error
- Inconsistent Chromium detection in cross platform
- Reporting unsuccessful exit code
- crash when launch with remote debugging pipe
- Reuse an existing window HOT 1
- RangeError [ERR_FS_FILE_TOO_LARGE]: File size (3055630622) is greater than 2 GiB
- Chrome launcher wont launch HOT 1
- Beta and Dev channels are not detected
- igmore
- /Users/sample/node_modules/chrome-launcher/dist/chrome-finder.js:14 const log = require('lighthouse-logger'); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module HOT 1
- Unknown error when ChromeLauncher.launch() in worker thread HOT 1
- Version v0.15.2 and kill chrome instance HOT 3
- Update readme for 1.0.0: ERR_REQUIRE_ESM
- `prefs` option doesn't work HOT 3
- Issue determining temp dir path HOT 1
- flag for setting useragentdata
- How to access environments variable with JS in chrome?
- move the red error dot to the console tab where it belongs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chrome-launcher.