2017 © Pedro Peláez
 

library codeception-mobileemulation

WebDriver mobile emulation switcher for Codeception

image

elstc/codeception-mobileemulation

WebDriver mobile emulation switcher for Codeception

  • Friday, January 19, 2018
  • by nojimage
  • Repository
  • 2 Watchers
  • 3 Stars
  • 208 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 259 % Grown

The README.md

WebDriver mobile emulation switcher for Codeception

Software License Build Status Latest Stable Version , (*1)

This Codeception module can be able mobile emulation on browser. Currently support only chrome browser., (*2)

Installation

You can install this plugin into your applicaion using composer., (*3)

The recommended way to install composer packages is:, (*4)

composer require --dev elstc/codeception-mobileemulation

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

modules:
    enabled:
        - MobileEmulation
        - WebDriver

See: 06-ModulesAndHelpers - Codeception - Documentation, (*6)

[IMPORTANT] MobileEmulation module should be load before WebDriver module., (*7)

Usage

In your Cest test case, write $mobileEmulation property:, (*8)

```(php) class AwesomeCest { public $mobileEmulation = true;, (*9)

// ...

}, (*10)


When `$mobileEmulation = true`, within this testcase, mobile emulation is enabled. And you can use `emulationMobile()` method: ```(php) class AwesomeCest { public function tryYourSenario($I) { // enable mobile emulation manually, (with specific device name) $I->emulationMobile('iPhone 8 Plus'); // ... } }

Configuration options

defaultDeviceName

Default emulate device name., (*11)

default: 'iPhone 6', (*12)

The Versions

19/01 2018

dev-master

9999999-dev

WebDriver mobile emulation switcher for Codeception

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

19/01 2018

dev-travis

dev-travis

WebDriver mobile emulation switcher for Codeception

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

19/01 2018

v1.0.0

1.0.0.0

WebDriver mobile emulation switcher for Codeception

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires