How to use WebDriver and ChromeDriver to automate Samsung Internet

Good news! Since v8 of Samsung Internet, now available in Beta, it is possible to automate the browser using ChromeDriver, the Selenium WebDriver protocol implementation for Chromium browsers.

We’ve had requests for this from companies who wish to incorporate Samsung Internet into their automated testing suites, so we’re pleased to share how you can help to ensure your web properties work well in one of the most popular mobile browsers worldwide!

ChromeDriver versions match up with particular versions of the Chromium engine. Samsung Internet v8.x is based on Chromium M63. This means that you will need to use ChromeDriver v2.36 (which supports v63–65).

Here is a basic Python script example which shows how to configure ChromeDriver to use Samsung Internet (from our examples repository on Github):

Basic eaxample of running Samsung Internet using ChromeDriver — from here

For full instructions, please see the README. Here’s what should happen when you run it — the browser will be launched and controlled automatically:

Samsung Internet being controlled by ChromeDriver

If you are interested in the ChromeDriver change required to make this possible, here is the patch made by our Samsung colleagues to make it more extensible. Thank you to the wider ChromeDriver community for their support. If you require any support using ChromeDriver for Samsung Internet, you can raise an issue or contact us by email or Twitter.

One more thing…

We also have a new and improved Cloud Device Farm for remote testing real Samsung mobile devices, part of the free Samsung Developers Program. You might find this useful if you want to try out your websites and apps on Samsung hardware too. (Remember that you don’t necessarily need a Samsung device to try out Samsung Internet anymore though - nowadays it’s available for all Android 5+ from the Play Store or Galaxy Apps Store!)

Samsung Internet Developers

Writings from the Samsung Internet Developer Relations Team. For more info see our disclaimer:

Peter O'Shaughnessy

Written by

Web developer. Mastodon: Twitter: @poshaughnessy

Samsung Internet Developers

Writings from the Samsung Internet Developer Relations Team. For more info see our disclaimer:

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade