visual-plugin icon indicating copy to clipboard operation
visual-plugin copied to clipboard

Add configuration to hide elements

Open devpaul opened this issue 7 years ago • 0 comments

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.

devpaul avatar Apr 04 '17 06:04 devpaul