Emulation.setScrollbarsHidden does not work in Chrome Mobile

383 views
Skip to first unread message

Anton Usmansky

unread,
Jul 16, 2019, 9:20:37 AM7/16/19
to Chrome DevTools
Hi.
I use Chrome for automated screenshot tests. And I need to hide scrollbars to make tests more stable.

Guys from chromium suggested to use Emulation.setScrollbarsHidden from DevTools protocol: https://chromium-review.googlesource.com/c/chromium/src/+/1365237/2#message-5aebf8be610573882e646bbf4e27ce00d1c6c642
And it works perfectly in Chrome. But doesn't work in Chrome Mobile

How can I hide scrollbars in Chrome Mobile?

PhistucK

unread,
Jul 16, 2019, 9:23:09 AM7/16/19
to Google Chrome Developer Tools
Are you trying to hide overlay scroll bars that show up and quickly hide?
Because Chrome for mobile does not have regular scroll bars...

PhistucK


--
You received this message because you are subscribed to the Google Groups "Chrome DevTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/d198207f-61d5-4aed-8e5e-e2960892e924%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Anton Usmansky

unread,
Jul 16, 2019, 10:32:53 AM7/16/19
to Chrome DevTools
Yes. I'm trying to hide scroll bars that show up and than hide.

вторник, 16 июля 2019 г., 16:23:09 UTC+3 пользователь PhistucK написал:
Are you trying to hide overlay scroll bars that show up and quickly hide?
Because Chrome for mobile does not have regular scroll bars...

PhistucK


On Tue, Jul 16, 2019 at 4:20 PM Anton Usmansky <anton....@gmail.com> wrote:
Hi.
I use Chrome for automated screenshot tests. And I need to hide scrollbars to make tests more stable.

Guys from chromium suggested to use Emulation.setScrollbarsHidden from DevTools protocol: https://chromium-review.googlesource.com/c/chromium/src/+/1365237/2#message-5aebf8be610573882e646bbf4e27ce00d1c6c642
And it works perfectly in Chrome. But doesn't work in Chrome Mobile

How can I hide scrollbars in Chrome Mobile?

--
You received this message because you are subscribed to the Google Groups "Chrome DevTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-developer-tools+unsub...@googlegroups.com.

PhistucK

unread,
Jul 17, 2019, 3:12:50 AM7/17/19
to Google Chrome Developer Tools
I am not sure the entire emulation stack is working on Chrome for mobile. Its intention is to emulate mobile, so if you are already on mobile, there is nothing more to emulate, I guess...

PhistucK


On Tue, Jul 16, 2019 at 5:32 PM Anton Usmansky <anton.u...@gmail.com> wrote:
Yes. I'm trying to hide scroll bars that show up and than hide.

вторник, 16 июля 2019 г., 16:23:09 UTC+3 пользователь PhistucK написал:
Are you trying to hide overlay scroll bars that show up and quickly hide?
Because Chrome for mobile does not have regular scroll bars...

PhistucK


On Tue, Jul 16, 2019 at 4:20 PM Anton Usmansky <anton....@gmail.com> wrote:
Hi.
I use Chrome for automated screenshot tests. And I need to hide scrollbars to make tests more stable.

Guys from chromium suggested to use Emulation.setScrollbarsHidden from DevTools protocol: https://chromium-review.googlesource.com/c/chromium/src/+/1365237/2#message-5aebf8be610573882e646bbf4e27ce00d1c6c642
And it works perfectly in Chrome. But doesn't work in Chrome Mobile

How can I hide scrollbars in Chrome Mobile?

--
You received this message because you are subscribed to the Google Groups "Chrome DevTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Chrome DevTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/34d1fff7-5c1a-4154-b350-7ca75ddfb0e1%40googlegroups.com.

Anton Usmansky

unread,
Jul 17, 2019, 5:18:18 AM7/17/19
to Chrome DevTools
But it works not only for emulation. It works also for desktop browser. So looks like its not only about emulation

среда, 17 июля 2019 г., 10:12:50 UTC+3 пользователь PhistucK написал:
I am not sure the entire emulation stack is working on Chrome for mobile. Its intention is to emulate mobile, so if you are already on mobile, there is nothing more to emulate, I guess...

PhistucK


On Tue, Jul 16, 2019 at 5:32 PM Anton Usmansky <anton....@gmail.com> wrote:
Yes. I'm trying to hide scroll bars that show up and than hide.

вторник, 16 июля 2019 г., 16:23:09 UTC+3 пользователь PhistucK написал:
Are you trying to hide overlay scroll bars that show up and quickly hide?
Because Chrome for mobile does not have regular scroll bars...

PhistucK


On Tue, Jul 16, 2019 at 4:20 PM Anton Usmansky <anton....@gmail.com> wrote:
Hi.
I use Chrome for automated screenshot tests. And I need to hide scrollbars to make tests more stable.

Guys from chromium suggested to use Emulation.setScrollbarsHidden from DevTools protocol: https://chromium-review.googlesource.com/c/chromium/src/+/1365237/2#message-5aebf8be610573882e646bbf4e27ce00d1c6c642
And it works perfectly in Chrome. But doesn't work in Chrome Mobile

How can I hide scrollbars in Chrome Mobile?

--
You received this message because you are subscribed to the Google Groups "Chrome DevTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-developer-tools+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Chrome DevTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-developer-tools+unsub...@googlegroups.com.

PhistucK

unread,
Jul 17, 2019, 12:52:50 PM7/17/19
to Google Chrome Developer Tools
Sorry, I am not sure I understand your response.

PhistucK


On Wed, Jul 17, 2019 at 12:18 PM Anton Usmansky <anton.u...@gmail.com> wrote:
But it works not only for emulation. It works also for desktop browser. So looks like its not only about emulation

среда, 17 июля 2019 г., 10:12:50 UTC+3 пользователь PhistucK написал:
I am not sure the entire emulation stack is working on Chrome for mobile. Its intention is to emulate mobile, so if you are already on mobile, there is nothing more to emulate, I guess...

PhistucK


On Tue, Jul 16, 2019 at 5:32 PM Anton Usmansky <anton....@gmail.com> wrote:
Yes. I'm trying to hide scroll bars that show up and than hide.

вторник, 16 июля 2019 г., 16:23:09 UTC+3 пользователь PhistucK написал:
Are you trying to hide overlay scroll bars that show up and quickly hide?
Because Chrome for mobile does not have regular scroll bars...

PhistucK


On Tue, Jul 16, 2019 at 4:20 PM Anton Usmansky <anton....@gmail.com> wrote:
Hi.
I use Chrome for automated screenshot tests. And I need to hide scrollbars to make tests more stable.

Guys from chromium suggested to use Emulation.setScrollbarsHidden from DevTools protocol: https://chromium-review.googlesource.com/c/chromium/src/+/1365237/2#message-5aebf8be610573882e646bbf4e27ce00d1c6c642
And it works perfectly in Chrome. But doesn't work in Chrome Mobile

How can I hide scrollbars in Chrome Mobile?

--
You received this message because you are subscribed to the Google Groups "Chrome DevTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Chrome DevTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Chrome DevTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/e2f4aa3f-7c85-4519-890f-b08d4d54a377%40googlegroups.com.

Anton Usmansky

unread,
Jul 17, 2019, 2:45:48 PM7/17/19
to Chrome DevTools
`Emulation.setScrollbarsHidden` hides scrollbars not only in emulation mode but in general mode too. In desktop browser.

среда, 17 июля 2019 г., 19:52:50 UTC+3 пользователь PhistucK написал:
Sorry, I am not sure I understand your response.

PhistucK


On Wed, Jul 17, 2019 at 12:18 PM Anton Usmansky <anton....@gmail.com> wrote:
But it works not only for emulation. It works also for desktop browser. So looks like its not only about emulation

среда, 17 июля 2019 г., 10:12:50 UTC+3 пользователь PhistucK написал:
I am not sure the entire emulation stack is working on Chrome for mobile. Its intention is to emulate mobile, so if you are already on mobile, there is nothing more to emulate, I guess...

PhistucK


On Tue, Jul 16, 2019 at 5:32 PM Anton Usmansky <anton....@gmail.com> wrote:
Yes. I'm trying to hide scroll bars that show up and than hide.

вторник, 16 июля 2019 г., 16:23:09 UTC+3 пользователь PhistucK написал:
Are you trying to hide overlay scroll bars that show up and quickly hide?
Because Chrome for mobile does not have regular scroll bars...

PhistucK


On Tue, Jul 16, 2019 at 4:20 PM Anton Usmansky <anton....@gmail.com> wrote:
Hi.
I use Chrome for automated screenshot tests. And I need to hide scrollbars to make tests more stable.

Guys from chromium suggested to use Emulation.setScrollbarsHidden from DevTools protocol: https://chromium-review.googlesource.com/c/chromium/src/+/1365237/2#message-5aebf8be610573882e646bbf4e27ce00d1c6c642
And it works perfectly in Chrome. But doesn't work in Chrome Mobile

How can I hide scrollbars in Chrome Mobile?

--
You received this message because you are subscribed to the Google Groups "Chrome DevTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-developer-tools+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Chrome DevTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-developer-tools+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Chrome DevTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-developer-tools+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages