New issue
Advanced search Search tips

Issue 713204 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 649657
Owner:
Closed: Apr 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All , Mac
Pri: 2
Type: Feature


Show other hotlists

Hotlists containing this issue:
Geolocation


Sign in to add a comment

Feature request: devtools: make geolocation emulation persistable / programmable

Reported by pol...@gmail.com, Apr 19 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36

Steps to reproduce the problem:
1. Use devtools/console/sensor drawer to set an emulated geolocation.
2. Shutdown browser, start up browser
3. Geolocation emulation set back to default

What is the expected behavior?
I know this is a feature request and not a bug. But for automated tests, it would be awesome to have a way to (1) persist geolocation emulation and/or (2) set it programmatically.

What went wrong?
Nothing :). This is just a feature request.

Did this work before? No 

Chrome version: 60.0.3074.0 canary (64-bit)  Channel: canary
OS Version: OS X 10.11.6
Flash Version: 

Thank you for considering my feature request. Let me know if I can supply any additional data, need a tester, etc.
 

Comment 1 by caseq@chromium.org, Apr 19 2017

Components: -Platform>DevTools Platform>DevTools>Mobile
Labels: Needs-Feedback OS-All
Owner: dgozman@chromium.org
Status: Assigned (was: Unconfirmed)
I would assume that for automation tests you wouldn't really be using the DevTools front-end as a client?
Cc: dgozman@chromium.org
Owner: l...@chromium.org
We cannot enable goelocation emulation on DevTools startup silently, because you have no clear indication.

Are you worried about losing the values you entered? We can persistthose, but require to click the checkbox on DevTools reopening. Would that be good enough for your usecases?

As caseq@ mentioned, we do not consider using DevTools front-end for automation a reasonable scenario.

Comment 3 by pol...@gmail.com, Apr 19 2017

caseq: you have a good point. I use selenium, and I completely forgot that it doesn't play well with devtools.

dgozman: a checkbox for persistence would be wonderful. Could this be set per user profile? Because that would be triple wonderful.

Thanks to both of you for your time.
Labels: -Type-Bug -Needs-Feedback Type-Feature
Sounds like checkbox + persisted values satisfies everyone. Over to luoe@.

Comment 5 by l...@chromium.org, Apr 21 2017

Mergedinto: 649657
Status: Duplicate (was: Assigned)
Thanks for the request and the great triage.  There's an older existing request filed, so I'll merge this and edit the other bug to reflect the checkbox+persistence resolution.

Sign in to add a comment