Answered

Question about Angular Framework and identifying web elements via angular web driver via PROOF

Hello, we have developers from BT2 that are asking questions about Angular Framework and identifying web elements via angular web driver via PROOF; they have a application called FOAM that is being migrated from Bootstrap to Angular.

Is Angular framework something that Subject7 has on their radar? One of the complaints was that it would be harder for web elements to be captured via xpaths instead of id/name tags in Angular, I do not agree but I can see how different the web elements are.

Please see screenshot below of Angular UI and HTML.

 

0
4 comments
Avatar
Stephen Akinpelumia

Please see additional information related to my question below..

 

From: Amin, Nadeem (NIH/OD) [C] <nadeem.amin@nih.gov>
Subject: RE: Angular and PROOF Test Automation

Again, not disagreeing  about XPath solution  .   The following  open source  NGWebDriver  is another way to allow  lookup items by model. 

Lookup by model  may simplify understanding   between development and testing team about where to get the values from regardless of its position within the Dom Tree.

 

If  Proof is written in java, it can build similar a  similar  option to  include this model binding.

 

Ref. implementation :https://github.com/paul-hammant/ngWebDriver

Example usage :

0
Comment actions Permalink
Avatar
Joseph Hamdan

Hi Stephen,

Thank you, we are working on some features which should simplify interaction with web elements created by some of the most popular js frameworks. Stay tuned for new updates.

Regards,
Subject7 Team

0
Comment actions Permalink
Avatar
Alexander (Greg) Fangonil

Hi S7,

Have the features to work with Angular / JS frameworks been implemented in Proof already?

Thanks,

Greg

0
Comment actions Permalink
Avatar
Joseph Hamdan

Hi Greg,

We have made some improvements to our platform that may be useful for you. Specifically, we have improved the way XPaths are collected with Recorder using Silent Mode with XPath Templates. This allows users to create tests without the need to provide hints in Interactive Mode and still have relative XPaths which are more robust than absolute XPaths.

We would like to ask if you have already tested this on your Angular application, and if you noticed any issues or concerns with the compatibility between our platform and Angular. Also we would like to ask if you use Recorder and Gutenberg to help with XPath generation.

Regards,
Subject7 Team

0
Comment actions Permalink

Please sign in to leave a comment.