Skip to content

Add configuration to hide elements #9

Description

@devpaul

It's common for pages to have elements whose contents vary on subsequent page views. For instance, a welcome prompt that says "Hello, <user>" or other personalization; a time stamp; or ads.

We should add a configuration parameter that makes it easy to hide these variable elements. It could look something like

visualTest({
    url,
    width: 1024,
    height: 480,
    hide: [ '.querySelector', '.login' ],
    remove: [ 'footer' ]
}),

Elements would be identified using a query selector. Each item in the hide list would have visible: hidden applied. Each item in the remove list would have display: none applied.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions