Home / Companies / Octopus Deploy / Blog / Post Details
Content Deep Dive

Selenium series: running tests on mobile devices

Blog post from Octopus Deploy

Post Details
Company
Date Published
Author
Matthew Casperson
Word Count
840
Language
English
Hacker News Points
-
Summary

In this blog post, Matthew Casperson discusses the integration of mobile browser testing into a Selenium WebDriver test framework using BrowserStack, with a focus on testing with Chrome on a Samsung Galaxy Note 8. The article provides a detailed explanation of creating a decorator class, BrowserStackAndroidDecorator, to set the desired capabilities for running tests on mobile devices, and how to use this class within the AutomatedBrowserFactory. Casperson outlines the process of configuring environment variables for BrowserStack credentials within IntelliJ's JUnit settings to streamline the testing process across various devices. The post highlights the flexibility of WebDriver in accommodating a wide range of devices through simple decorators, while also acknowledging the need to address edge cases when testing across different browser environments.