How to use WebDriver and ChromeDriver to automate Samsung Internet
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):
For full instructions, please see the README. Here’s what should happen when you run it — the browser will be launched and controlled automatically:
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!)