Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

I am learning Selenium IDE and I am stuck on flow control. Can anyone advise me on how to master this concept? I would like reference on video, or documentation. Thank you

share|improve this question
    
Google is a useful tool for looking up technical documentation. I Googled for "Selenium Flow Control Youtube" and found this. It's part of a series. –  user246 Sep 30 '13 at 21:03
    
Can you elaborate on what you consider to be "flow control"? –  djangofan Oct 31 '13 at 16:09
add comment

3 Answers

I would argue that the Selenium IDE is not designed for creating more complex sequences as it relies on a number of assumptions about your application that may change and break your tests; Hardcoded IDs, strict structure dependence, and poor abstraction between operation (Click, Type, Click, Type, Click) and motivation (Login as Toby).

I would recommend using the Selenium IDE to quickly identify the testability of the webapp in question, before moving to another language such as Python, Ruby, Java etc and making use of the PageObjects pattern to create more robust tests whilst being able to leverage the power of the language you are using.

share|improve this answer
add comment

I'm assuming that when you say flow control, you mean conditional statements, loops etc., There are many limitations as to what can be replayed through Selenium IDE. For example handling popups is not possible with IDE because the popup is not a html object and will not have any locator. It is an ActiveX object. Selenium IDE doesn't provide any flow control as well. For that you need to use Selenium Webdriver with either Java or C#.

Don't try to build tests using Selenium IDE and convert them to webdriver scripts, you will loose chance of building modular tests if you do so. If application changes in future, you will have to modify all your tests independently.

Your best bet is to use Selenium Webdriver with C#(or Java) and also use some test framework like NUnit(or JUnit), so that non developers can run the tests using NUnit GUI using simple interface, that is the best approach I found so far. You can use PageObject pattern to maintain object repository and write tests.

share|improve this answer
add comment

I would consider looking at Selenium Builder instead. Selenium IDE is a deprecated project I think.

share|improve this answer
2  
Selenium IDE is a completely running project. Its not deprecated. –  farhan Dec 4 '13 at 9:59
    
While Selenium IDE is certainly not deprecated, it lacks a great deal of power/ability that you'd get with using Selenium within another programming language such as Java, C#, etc, etc. You can't do ODBC, nor can you do HTTP POST operations either. Selenium IDE is the quick and dirty approach to writing web tests. –  Green Dec 4 '13 at 19:59
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.