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

create a helper function to disable CSS transitions #23

Open
Isaak-Malers opened this issue Jul 27, 2018 · 0 comments
Open

create a helper function to disable CSS transitions #23

Isaak-Malers opened this issue Jul 27, 2018 · 0 comments

Comments

@Isaak-Malers
Copy link
Owner

this stack overflow comment is helpfull:

https://stackoverflow.com/questions/32097973/protractor-how-to-handle-site-that-is-heavily-animated

this would be done by adding a CSS class to the page dynamically at start:

.notransition * {
-webkit-transition: none !important;
-moz-transition: none !important;
-o-transition: none !important;
-ms-transition: none !important;
transition: none !important;
}
... and in protractor, I've got something like:

_self.disableCssAnimations = function() {
return browser.executeScript("document.body.className += ' notransition';");
};

This task should be rolled into the "screenshot redesign" task, and they can be accomplished in one branch.

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

No branches or pull requests

1 participant