Is anyone testing angular apps using the python bindings for webdriver? I know the de facto method or tool for end-to-end testing angular is Protrator which is built on top of WebDriverJS or the javascript bindings. Looking further into Protractor one can see that it adds several angular specific locators for items like angular bindings, model, and repeaters as well as some functionality to handle synchronization with angular elements/web pages.

This synchronization, in particular, is done using promises to wait for outstanding requests within the node callback stack which in turns helps deal with slow pages/apps making the tests (a lot?) more stable. I will be be testing some sites which will have angularjs elements but will be using the python webdriver bindings. Noting the additions within Protrator I have tried to mimick its additional functionality within Python using javascript calls (execute_script, execute_async_script). I have some working code for finding ng-bindings and ng-model and started testing these using the Protractor internal test suite. I am also currently mentally breaking apart the protactor code for finding repeaters and the waitForAngular function(ality) looking at how to implement within Python with WebDriverPython.

So I am curious if anyone has done testing of angular with Python and if anyone has looked at the usage of promises within WebDriverJS and pondered how the advantages of promises could be used by the blocking bindings/languages like Python?

Ed

--
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to