Giter Site home page Giter Site logo

Comments (9)

paulirish avatar paulirish commented on June 22, 2024

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.

ORESoftware avatar ORESoftware commented on June 22, 2024

is there a way to open a new tab in an existing window?

from chrome-launcher.

paulirish avatar paulirish commented on June 22, 2024

Target.createTarget in the protocol.

from chrome-launcher.

ORESoftware avatar ORESoftware commented on June 22, 2024

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.

patrickhulce avatar patrickhulce commented on June 22, 2024

@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.

ORESoftware avatar ORESoftware commented on June 22, 2024

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.

patrickhulce avatar patrickhulce commented on June 22, 2024

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.

paulirish avatar paulirish commented on June 22, 2024

@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.

ORESoftware avatar ORESoftware commented on June 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.