Ed Manlove
unread,May 29, 2014, 9:22:02 AM5/29/14Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ang...@googlegroups.com
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