We have already discussed about Selenium IDE, if you have missed or want to know about Selenium IDE then check out this article Selenium Automation Tool (Selenium IDE).
Using Selenium IDE (Selenium Integrated Development Environment) we can perform almost all types of data verification or we can retrieve any kind of data from the web application. Yes the drawback of Selenium IDE is we have to use Mozilla Firefox Web browser only and cannot use any other Web browser. We can overcome this drawback using the same commands/functions in Selenium RC.
Let me first list out all available commands in Selenium IDE, description of each one of them and how we can use them in Selenium IDE/RC.
Available Commands in Selenium IDE
This below function is use to open any webpage or navigate to any other url. It takes webpage url as a function argument.
Following are some assert functions available.
We can also perform verification checks using the below functions in Selenium IDE and same functions we can use in selenium RC as well.
In Selenium IDE we have some readymade wait functions which can help us in maintaining synchronization with webpage objects. Below all functions can be used when there is a webpage refresh and in script we want to perform any operation on web objects.
When we want to retrieve text or some value from the web page or from the web table, we can use below functions. These are the most useful functions we will be requiring during the software test automation scripts.
Below functions are the cores of all above function, without below functions we cannot use all above functions. Let me give you details of each functions and how to use them.
This function is used when we want to check for any Text on the web page. It accepts argument of “Text” which we want to verify whether that text is present or not on the webpage and it returns Boolean value. If specified Text is present on the webpage then it will return true or else it returns false.
This functions returns Title of the page.
getValue(“XPath / Name Of the Web Object”); When we want to retrieve values from the text field or from some other web objects then we can use this function. We have to pass web object name or XPath of the web object.
getText(“XPath / Name Of the Web Object”);
This will help us for retrying text from the webpage. Here again the argument is XPath or the name of the web element name.
We can also retrieve values from the web table also. Argument of this function is XPath of the Table and also we have to pass Row and Column number with it.
For example, if the XPath of the Table is –
If we want to retrieve value from 2nd Row and 5th Column form the table then following XPath we have to pass in the argument as a string.
isElementPresent(“XPath / Name Of the Web Object”);
Again this function is used to find out whether particular web element is present on the webpage or not. Argument is XPath or Name of the Web Element and it returns Boolean value. If web element is present then it returns true else false.
All above functions we can use either in Selenium IDE or in Selenium RC.
I hope after this article you all will start using all important functions in Selenium RC which are available in Selenium IDE.