Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Testing a "Dojo" web application with Selenium

Has anyone done some extensive automation with Selenium and a Dojo-heavy web app? I'm looking for any issues or problem that you might have run into or issues related directly to the combination of Selenium and Dojo.

like image 436
StefanE Avatar asked May 04 '11 13:05

StefanE


People also ask

Can Selenium be used to test web applications?

Selenium WebDriver is a web framework that permits you to execute cross-browser tests. This tool is used for automating web-based application testing to verify that it performs expectedly.

How do I test my website using Selenium?

Recording and then playing the application test: First, we will be doing testing of the web applications. Select the menu from the Designer Icon. Then click on Selenium. Select the browser you want to work on.

Can we automate Web application using Selenium?

Selenium is used to automate tests on websites to monitor their performance. A fundamental feature of many websites is their login function. Automating the testing of this feature is simple enough when using Selenium WebDriver, as this article will demonstrate.


2 Answers

I've used Selenium extensively with a bunch of different web apps, including a few on Dojo. You should be fine. One practice I would recommend is to make sure all the components you'll be testing (both UI controls you'll be driving, as well as text components you'll be reading for testing) have ID tags set. Selenium has a bunch of elegant selectors to get at the elements you need, but selection by ID is still the best. The other methods can be more brittle.

I've had some challenging experiences with Selenium RC not being as compatible with my code as Selenium IDE, to the point that I stopped using Selenium RC. And in case you are not super familiar with Selenium, you should be aware that it doesn't natively support some (IMO) pretty fundamental features like flow control and includes; but there are user extensions to the framework that allow this. I'd also recommend taking a look at Watir which I now generally prefer over Selenium because it exposes the full power/flexibility of a first class language (Ruby).

like image 78
jkraybill Avatar answered Oct 24 '22 17:10

jkraybill


I'm working on a Dojo-heavy app right now, and am making a number of tests with Selenium IDE. I've ran into a few issues with certain Dojo elements, such as drop down menus and tabbed components. I've learned to appreciate XPath, and have been experimenting with how clickAt and waitForElementPosition commands, which seem to help accommodate for some of Dojo's features.

like image 33
Mark Kimitch Avatar answered Oct 24 '22 19:10

Mark Kimitch