Showing posts with label Advanced Selenium IDE. Show all posts
Showing posts with label Advanced Selenium IDE. Show all posts

If you see selenium IDE commands with examples on COMMAND LIST PART 1 and COMMAND LIST PART 2, You will find many commands to perform different actions on web page. But still selenium IDE have not any commands to perform few actions directly like showing hidden element or hiding any

Before discussing on enabling/disabling any element in selenium IDE, Let me tell you one thing - Selenium IDE is less powerful compared to Selenium RC and WebDriver, we can not perform all the tasks in selenium IDE. But still we can automate simple flows very easily in selenium IDE compared to webdriver because

JavaScript is the most important component of software web application. Developers generally using JavaScript to generate alert, to generate confirmation message, to handle client side validation etc.. If you will disable JavaScript of your browser then you will not get alert message or confirmation message or client side validation message on your action.

"runScript" command can be used for the different purpose in different condition. You can use it to run any java script in selenium IDE. View my previous 3 posts where i have described how to use "runScript" command for different purpose. Today we are taking one example of changing page title using "runScript"

"runScript" command Example 1 and Example 2 will describe you how to generate alert message in selenium IDE. Now let we go at next step. Supposing i have a drop down containing labels Volvo, Saab, Opel, Audi, Toyota and Renault. I want to pick one specific label from it to store it in to variable to

I hope you all are already aware about "selectWindow" command and all other previously published selenium IDE examples. If you have not viewed them then visit this link to view all examples step by step. I think "openMultipleWindow" command will be new for most of selenium IDE users. Yes because "openMultipleWindow" is not built in command of selenium IDE but we can get its support by attaching user extension file with selenium IDE.

"openMultipleWindow" command
First of all let me tell you function of "openMultipleWindow" command. It will open multiple windows as specified in target column of "openMultipleWindow" command. Value field will be used to set prefix window id of all new opened windows. Let me describe it with example.

Steps to download and install user extension file
First of all you need to copy user extension file code from this link.and paste it in text file and then save it as Userextension-openMultipleWindow.js on your hard drive. Now attach this file with selenium IDE as user extension to get support of "openMultipleWindow" command. This link will show you the steps of attaching user extension files with selenium IDE if you don't know. After attaching user extension file with selenium IDE, restart selenium IDE window.

"openMultipleWindow" Example
I have created one simple example of "openMultipleWindow" command as bellow to understand it. Run it in your selenium IDE. This example will open 2 windows and then it will show you how to operate on both of windows. However you can view examples of other methods to handle multiple windows in selenium IDE.

New Test


is selected and selenium will do
some action on it.")}

is selected and selenium will
do some action on it.")}

runScriptjavascript{alert("Now Selenium will
close both the windows")}


You can try above example with more than 2 windows with your software application.

In my previous post, I described how to generate alert message using "runScript" command in selenium IDE. In this example, Let we see how can we show variable value inside alert using "runScript" command. Copy paste bellow given example in your selenium IDE and run it.

Example 2 : "runScript" Command With Variable In Script

Many blog readers were asking me for "runScript" command examples. Finally i got some time to prepare few examples for "runScript" command. There is not one specific use of "runScript" command but we can use it in different ways for different conditions. BTW, you can Look at different examples of using javascript with selenium IDE.

We already learnt about data driven testing by attaching external data file with selenium IDE in my previous post. In that case we have used "storeEval" command to fetch data from external .js file. Another way of data driven testing in selenium IDE is using push command. Now let we learn how can we create

Selecting new opened window using "selectWindow" command in selenium IDE is very easy if new window has title or name. Click here to view example of "selectWindow" command with title as a target. If window has title then we can add it's title in target field with "selectWindow" command and this way selenium

Many tutorial post are available for selenium IDE Mouse related commands but mouse scrolling event was missing from them till now. You need mouse scrolling event when you are testing software application like Facebook. In Facebook, post are loaded on mouse scrolling if you have seen. In this kind of scenario,

I posted other posts too for "storeEval". Click here to view more tutorials of selenium IDE "storeEval" command. In software testing using selenium IDE, many times you needs to verify or compare the number of records list during activity like searching, adding or deleting records. Generally, record count displayed on

We can use  "waitForElementPresent" command to wait till element appears on page. One other command "waitForTextPresent" command to wait till text display on software application page. Sameway, "waitForCondition" command will wait for condition until targeted condition not match. This selenium

There are many advanced selenium IDE tutorial posts available about different commands, methods and selenium IDE plugins and i think that all of them will help you to make your software testing process easy using selenium IDE. Now let me tell you one more interesting and most useful command to include in your

If you are using Selenium IDE regularly for software web application testing then it is important for you to access selenium IDE on single click. Click here to read more Selenium IDE tutorials. In general we are accessing selenium IDE window from Mozilla Firefox à ‘Tools’ Menu àSelenium IDE. Now let me tell

"Rollup" command is used as a bunch of commands in selenium IDE. "Rollup" command is very useful feature in selenium IDE to reduce size of test case. Let me tell you one example for better understanding. Suppose we are testing any mail login software application features considering bellow given scenarios.

We already learnt about random number generation and concatenation of random number with other string like email id in Selenium IDE - Generating random number using javascript with example post. Now let me give you few examples for generating random alpha numeric string, generating only random numeric

In Selenium IDE test cases, we often using variables to store values like numbers, string, URL etc.. in it to use it in other commands. If you don't know, let me tell you one thing that with the help of "echo" command, we can view current stored value of variable in execution log during software application test case execution.

Selenium IDE has built in Log tab where you can see selenium command Execution log of your software application test case but there is not any built in tool to save that log in file. I found one related selenium IDE plugin named "File Logging (Selenium IDE)" developed by Samit Badle. "File Logging (Selenium IDE)" is

Highlighting individual element will be done directly by using "highlight" command with selenium IDE. You can see script Example 1, Example 2 and Example 3 for "highlight" command. Now if you want to highlight each and every element of software web application with selenium IDE command execution then