Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configuration to hide elements #9

Open
devpaul opened this issue Apr 4, 2017 · 0 comments
Open

Add configuration to hide elements #9

devpaul opened this issue Apr 4, 2017 · 0 comments

Comments

@devpaul
Copy link
Contributor

devpaul commented Apr 4, 2017

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.

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

No branches or pull requests

1 participant