4

When connected to a device and using the Chrome Developer Tools Remote Debugging, is there a way to tell your device to visit a new URL rather than just choosing one of pages that are already thumbnailed?

Thanks in advance,

Martin

1 Answer 1

3

You can pick one of the pages that are thumbnailed (i.e. one of the open tabs), and in the developer tools for that page, go to the console tab and type:

window.location.href = "http://google.com"

...where you replace http://google.com with your desired URL. (see How to get browser to navigate to URL in Javascript?)

If you don't want to navigate one of the existing pages, one way I know of is via telling android (via ADB) to open a URL, with the default browser set to Chrome in Android. That should open a new tab. See Need command line to start web browser using adb

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.