Quality Testing

Quality is delighting customers

How to test Angular JS applications using Selenium Webdriver?

Currently I am using selenium webdriver for testing web applications. 

Currently my developers are introducing new technology and rebuilding web application in Angualar JS.

How to test Angular JS applications using Selenium Webdriver? and How to configure.?

Views: 2071

Reply to This

Replies to This Discussion

Hi Madhuri,

I hope this link will help you:

http://www.thoughtworks.com/insights/blog/testing-angularjs-apps-pr...

Regards,

Vishal D.

Thanks Vishal.  I am having this link.

Nothing to configure, if you know how to write the XPATHs manually, instead using FIrepath then most of your job is completed. Another thing is you need to traverse through multiple div tags and need to get the span elements at the end.

Use of Javascript Executor will be used in this.

Thanks Ramesh!

If you don't mind can you please provide one sample script.

As said earlier, if you are trying to click on span element below is the Xpath given by Firpath:

//*[@id='lowerDataGridContainer']/dynamic-data-grid/div/div/div/div[2]/div[4]/div/div[2]/div[2]/div/span

if you write manually then the Xpath will be:  //span[text()='lowerDataGridContainer']

Advantage in writing manually is, tomorrow if any of the div tag is missing or added in future by the developers then your testcase wont fail.

Thanks Ramesh !

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2019   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service