I am writing test automation for Ajenti2
With Selenium for Python
I need to disable animation: progress bar, buttons, icons, etc
I found it: $animate.enabled()
here https://docs.angularjs.org/guide/animations
But i can't figure out how to apply it. This works in: https://plnkr.co/edit/
It doesn't work in DevTools console, or by adding a script to the template:
https://github.com/ajenti/ajenti/blob/master/plugins/core/content/pages/index.html
Additional information:
Creating a module:
https://github.com/ajenti/ajenti/blob/master/plugins/core/resources/js/core/module.es
Creating a controller:
https://github.com/ajenti/ajenti/blob/master/plugins/core/resources/js/core/controllers/root.controller.es
Unfortunately I don't really understand JS and AngularJS
I want to use the final result
via
dirver = webdriver.firefox()
driver.execute_script()
or
editing index.html
Aucun commentaire:
Enregistrer un commentaire