Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Selenium be used to testing single page JavaScript apps? [closed]

UI testing beginner here, can Selenium be used for UI testing single page JavaScript apps?

Apps use async AJAX / Web Socket requests, service end points are tested but I need UI testing as well.

Apart from Selenium, which other tools would you recommend?

like image 245
Sri Avatar asked May 28 '12 03:05

Sri


1 Answers

It's perfectly fine for pages that are heavy on the ajax, you just may have to do some fine-grained adjusting of the timeouts for each method you call since there won't necessarily be an obvious signal to Selenium when an ajax method completes (like there is when a page finishes loading).

checkout timeout usage here:

http://seleniumhq.org/docs/04_webdriver_advanced.html

like image 154
silijon Avatar answered Oct 23 '22 18:10

silijon