AngularJS and Robotframework

955 views
Skip to first unread message

Causse pierre

unread,
Jul 28, 2016, 1:04:04 PM7/28/16
to robotframework-users
Hi all,

I'm trying to test an angularJs web application.

I know that Protractor is one of the best tool for that but I'd like to use Robotframework instead. Because RBFWK use a natural langage.

So, I ve seen two libraries available under GitHub.

/robotframework-extendedselenium2library


and

Selenium2Library/robotframework-angularjs


These libraries are not "offical" libraries and are not referenced under the official RBFWK web site.

Has somebody already used these libraries ?

Can we be confident in these libraries ?

Thanks

Ed Manlove

unread,
Jul 29, 2016, 8:14:53 AM7/29/16
to robotframe...@googlegroups.com
--

As author of the robotframework-angularjs library I along with my team have used it for an internal testing project. The robotframework-angularjs library is alright. The AngularJS version system we were testing was recently upgraded and exposed some issues with the library (in particular issues with the wait for Angular and one is no longer allowed to use the interpolation notion or simply curly bracket {{ }} notation in the by binding string as of AngularJS 1.3+).

I'll also note that I have been busy and not responding well to this newsgroup. Contrary Rick has made several releases to the Extended Selenium2Library. Most telling is the download stats...

# vanity robotframework-extendedselenium2library
    robotframework-extendedselenium2library-0.4.8.zip    2015-06-27          693
 robotframework-extendedselenium2library-0.4.8.tar.gz    2015-06-27          803
    robotframework-extendedselenium2library-0.4.9.zip    2015-07-08          669
 robotframework-extendedselenium2library-0.4.9.tar.gz    2015-07-08          770
   robotframework-extendedselenium2library-0.4.10.zip    2015-07-09          688
robotframework-extendedselenium2library-0.4.10.tar.gz    2015-07-09          696
   robotframework-extendedselenium2library-0.4.11.zip    2015-07-22          658
robotframework-extendedselenium2library-0.4.11.tar.gz    2015-07-22         1449
   robotframework-extendedselenium2library-0.4.12.zip    2015-07-23          652
robotframework-extendedselenium2library-0.4.12.tar.gz    2015-07-23          658
   robotframework-extendedselenium2library-0.4.13.zip    2015-07-24          659
[SNIP]
    robotframework-extendedselenium2library-0.9.0.zip    2016-03-27          214
 robotframework-extendedselenium2library-0.9.0.tar.gz    2016-03-27           98
    robotframework-extendedselenium2library-0.9.1.zip    2016-07-11           60
 robotframework-extendedselenium2library-0.9.1.tar.gz    2016-07-11           25
--------------------------------------------------------------------------------
robotframework-extendedselenium2library has been downloaded 18475 times!

verses

# vanity robotframework-angularjs
       robotframework_angularjs-0.0.1-py2.7.egg    2016-02-06           18
robotframework_angularjs-0.0.1-py2-none-any.whl    2016-02-06           20
          robotframework-angularjs-0.0.1.tar.gz    2016-02-06           91
       robotframework_angularjs-0.0.2-py2.7.egg    2016-02-17           18
robotframework_angularjs-0.0.2-py2-none-any.whl    2016-02-17           37
          robotframework-angularjs-0.0.2.tar.gz    2016-02-17           19
--------------------------------------------------------------------------
robotframework-angularjs has been downloaded 203 times!

That probrably gives you the best picture. For various reasons I will continue to work on my library and welcome any contributors. Great thing is these are both open source, fairly small libraries and thus fairly easy to understand. We do take slighly different approaches but both are following the model that many non WebDriverJS languages are following (see https://github.com/emanlove/SeConf2015 for some reference to ruby and java implementations).

Ed

Ed Manlove

unread,
Jul 30, 2016, 12:11:07 PM7/30/16
to robotframe...@googlegroups.com
I have just made the 0.0.3 release of the AngularJSLibrary. This includes fixes for Wait For Angular keyword, fix to allow default by binding locator strategy as well as some doumentattion on how one can go about testing the library. This release can be found on pypi at https://pypi.python.org/pypi/robotframework-angularjs

Ed

Steve Dooley

unread,
Dec 5, 2019, 3:26:52 PM12/5/19
to robotframework-users

Hi Ed,

I had been using AngularJS Library, and default "ng-app" as working fine for the root_selector.  Then the UI team began upgrading to Angular 8, with the UpgradeModule.  This required a change to "app-component".  Now the 'Wait For Angular' command will not work.  I read some of the comments in the __init__.py file, and it seems that there is a settings option to use a different root_selector in the Settings initialization of the Library.  However, I have not seen an example that works.  What exactly is the signature or values to use 'app-component'?

Many Thanks!

Steve
Reply all
Reply to author
Forward
0 new messages