Disable animation when testing an AngularJS application with protractor

I have code in my AngularJS application that shows / hides some divs using animations like: $(el).fadeOut() .

How to disable animation during testing using protractor: http://api.jquery.com/jQuery.fx.off ? Can I somehow run this small o code in the browser directly from the protractor?

+6
source share
1 answer

Found:

 var ptor = protractor.getInstance(); ptor.get("http://localhost:9000/"); ptor.driver.executeScript("$.fx.off = true;"); 
+8
source

Source: https://habr.com/ru/post/953992/


All Articles