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
2 comments
Avatar
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

Please sign in to leave a comment.