PHPackages                             elstc/codeception-mobileemulation - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. elstc/codeception-mobileemulation

ActiveLibrary[Testing &amp; Quality](/categories/testing)

elstc/codeception-mobileemulation
=================================

WebDriver mobile emulation switcher for Codeception

v1.0.0(8y ago)565.4k↓55.6%1[1 issues](https://github.com/nojimage/codeception-mobileemulation/issues)MITPHPPHP &gt;=5.6

Since Jan 19Pushed 8y ago2 watchersCompare

[ Source](https://github.com/nojimage/codeception-mobileemulation)[ Packagist](https://packagist.org/packages/elstc/codeception-mobileemulation)[ RSS](/packages/elstc-codeception-mobileemulation/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

WebDriver mobile emulation switcher for Codeception
===================================================

[](#webdriver-mobile-emulation-switcher-for-codeception)

 [ ![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265) ](LICENSE.txt) [ ![Build Status](https://camo.githubusercontent.com/04a8f0a468d2a0be8c78bac0d6de73613d511e98eaacc9c7b2622a805b6a2213/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6e6f6a696d6167652f636f646563657074696f6e2d6d6f62696c65656d756c6174696f6e2f6d61737465722e7376673f7374796c653d666c61742d737175617265) ](https://travis-ci.org/nojimage/codeception-mobileemulation) [ ![Latest Stable Version](https://camo.githubusercontent.com/e57ad6eaf1496086c17e34beb83ff651d5e21cd428332817b468865e05285e9c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656c7374632f636f646563657074696f6e2d6d6f62696c65656d756c6174696f6e2e7376673f7374796c653d666c61742d737175617265) ](https://packagist.org/packages/elstc/codeception-mobileemulation)

This Codeception module can be able mobile emulation on browser. Currently support only `chrome` browser.

Installation
------------

[](#installation)

You can install this plugin into your applicaion using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require --dev elstc/codeception-mobileemulation

```

Then enable this module in your test suite configration file (eg: `acceptance.suite.yml` and etc...):

```
modules:
    enabled:
        - MobileEmulation
        - WebDriver

```

See: [06-ModulesAndHelpers - Codeception - Documentation](http://codeception.com/docs/06-ModulesAndHelpers)

\[IMPORTANT\] `MobileEmulation` module should be load before `WebDriver` module.

Usage
-----

[](#usage)

In your `Cest` test case, write `$mobileEmulation` property:

```
class AwesomeCest
{
    public $mobileEmulation = true;

    // ...
}

```

When `$mobileEmulation = true`, within this testcase, mobile emulation is enabled.

And you can use `emulationMobile()` method:

```
class AwesomeCest
{
    public function tryYourSenario($I)
    {
        // enable mobile emulation manually, (with specific device name)
        $I->emulationMobile('iPhone 8 Plus');
        // ...
    }
}

```

Configuration options
---------------------

[](#configuration-options)

#### `defaultDeviceName`

[](#defaultdevicename)

Default emulate device name.

default: `'iPhone 6'`

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3087d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a3fe494e51e33958f5c8079669fd036dfee4c2e6b11f85f2249ba36c371986e3?d=identicon)[nojimage](/maintainers/nojimage)

---

Top Contributors

[![nojimage](https://avatars.githubusercontent.com/u/100564?v=4)](https://github.com/nojimage "nojimage (11 commits)")

---

Tags

codeceptioncodeception-modulemobile-testingwebdriver

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/elstc-codeception-mobileemulation/health.svg)

```
[![Health](https://phpackages.com/badges/elstc-codeception-mobileemulation/health.svg)](https://phpackages.com/packages/elstc-codeception-mobileemulation)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14429.2M361](/packages/dms-phpunit-arraysubset-asserts)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
