Skip to content

hyperia-sk/highlight-ception

Repository files navigation

Highlight css element, text or xpath - codecept module

Build Status GitHub license Latest Stable Version

This module can be used to display the current representation of css element, text or xpath on a website with an expected. It was written on the shoulders of codeception and integrates in a very easy way.

screenshot from 2017-08-13 15-20-53

Installation

The preferred way to install this extension is through composer.

Either run

composer require hyperia/highlight-ception:"^1.1"

or add

"hyperia/highlight-ception": "^1.1"

to the require section of your composer.json.

Configuration (usage)

enable HighlightCeption module in acceptance.suite.yml config file:

modules:
    enabled:
        - WebDriver:
            url: http://hyperia.sk
            browser: chrome
        - HighlightCeption:
            module: WebDriver
            timeWait: 2
            cssClassName: 'hyperia-hc'
            cssStyle:
                background-color: yellow
                color: black

Parameter description

  • module - module responsible for browser interaction, default: WebDriver.
  • timeWait - wait seconds between see, seeLink, seeElements, seeInField, click, clickWithLeftButton and clickWithRightButton functions
  • cssClassName - css class name to use for css style we inject in page
  • cssStyle - your custom css style for highlight element or text on a site

Requirements

HighlightCeption needs the following components to run:

  • Codeception HighlightCeption is a module for Codeception. It will need a running version of this tool.
  • WebDriver module This tool only works with the webdriver module in Codeception at the moment.

Tests

./vendor/bin/codecept run -- -c test/integration

About

🎨 Visual highlight css element, text or xpath - codecept module

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy