What’s in it for you?  What is Selenium?  What is Selenium IDE?  Advancements with new IDE  Working principle of Selenium IDE  Components of Selenium IDE  Selenium commands  Key features of Selenium IDE  Limitations of Selenium IDE
What is Selenium
Selenium is an automated testing tool used to test web applications across various browsers What is Selenium?
Selenium is an automated testing tool used to test web applications across various browsers Selenium IDE Selenium RC Selenium WebDriver Selenium Grid What is Selenium?
Selenium is an automated testing tool used to test web applications across various browsers Selenium RC Selenium WebDriver Selenium Grid Selenium IDE Let’s learn about Selenium IDE in detail What is Selenium?
What is Selenium IDE?
What is Selenium IDE? Developed by Shinya Kastani in 2006
What is Selenium IDE? Developed by Shinya Kastani in 2006 Firefox add-on that helps create tests
What is Selenium IDE? Developed by Shinya Kastani in 2006 Firefox add-on that helps create tests Easy-to-use interface to build automated test scripts
What is Selenium IDE? Developed by Shinya Kastani in 2006 Firefox add-on that helps create tests Easy-to-use interface to build automated test scripts Records user interactions on the browser and exports them as a reusable script
What is Selenium IDE? Developed by Shinya Kastani in 2006 Firefox add-on that helps create tests Easy-to-use interface to build automated test scripts Records user interactions on the browser and exports them as a reusable script Generally used as a prototyping tool
What is Selenium IDE? Selenium IDE is a part of the Selenium suite and was developed to speed up the creation of automation scripts. It’s a rapid prototyping tool and can be used by engineers with no programming knowledge whatsoever
Advancements with new Selenium IDE
Resurrection of Selenium IDE Firefox upgraded to a new Firefox 55 version which no longer supported Selenium IDE
Resurrection of Selenium IDE Selenium IDE ceased to exist in August 2017 Firefox upgraded to a new Firefox 55 version which no longer supported Selenium IDE
Resurrection of Selenium IDE Selenium IDE ceased to exist in August 2017 Firefox upgraded to a new Firefox 55 version which no longer supported Selenium IDE Applitools rewrote the old Selenium IDE and released a new version recently
Selenium IDE ceased to exist in August 2017 Firefox upgraded to a new Firefox 55 version which no longer supported Selenium IDE Applitools rewrote the old Selenium IDE and released a new version % Let’s look at the advancements with new Selenium IDE
Advancements with new Selenium IDE • Traditionally Selenium IDE was only a Firefox plugin. The new IDE supports both Chrome and Firefox • Improved locator functionality • Parallel execution of tests using Selenium command line runner • Provision for control flow statements • Automatically waits for page to load • Supports embedded code-Runs JavaScripts • IDE has a debugger which allows step execution, adding breakpoints • The new version supports code exports
Working principle of Selenium IDE
The recorded script is executed so as to verify and monitor for its stability and success rate. The recorded script is now saved for future runs and regressions. SavingPlaying back Working principle Recording Records user interactions with the browser which constitutes the IDE script Selenium IDE
The recorded script is executed so as to verify and monitor for its stability and success rate. The recorded script is now saved for future runs and regressions. SavingPlaying back Working principle Recording Records user interactions with the browser which constitutes the IDE script Selenium IDE
The recorded script is executed to verify and monitor for its stability and success rate The recorded script is now saved for future runs and regressions. SavingPlaying back Working principle Recording Records user interactions with the browser which constitutes the IDE script Selenium IDE
The recorded script is executed to verify and monitor for its stability and success rate The recorded script is now saved for future runs and regressions SavingPlaying back Working principle Recording Records user interactions with the browser which constitutes the IDE script Selenium IDE
Components of IDE
Components of IDE Menu bar
Components of IDE Tool bar
Components of IDE Start/Stop recording button
Components of IDE Address bar
Components of IDE Test script editor box
Components of IDE Test case pane
Components of IDE Test log and reference
Selenium commands
Selenium commands Action Accessors Assertions Commands which interact directly with the application Allow the user to store certain values to a user-defined variable Verifies the current state of the application with an expected state Selenium commands
Selenium commands Action Accessors Assertions Commands which interact directly with the application Allow the user to store certain values to a user-defined variable Verifies the current state of the application with an expected state Selenium commands
Selenium commands Action Accessors Assertions clickAndWait(), typeAndWait() Allow the user to store certain values to a user-defined variable Verifies the current state of the application with an expected state Selenium commands
Selenium commands Assertions clickAndWait(), typeAndWait() Verifies the current state of the application with an expected state Action Accessors Allows the user to store certain values to a user-defined variable Selenium commands
Selenium commands Assertions clickAndWait(), typeAndWait() Verifies the current state of the application with an expected state Action Accessors storeTitle() Selenium commands
Selenium commands Assertions clickAndWait(), typeAndWait() Verifies the current state of the application with an expected state Action Accessors storeTitle() Selenium commands
Forms of Assertion Verify Wait for Assert command makes sure that the test execution is terminated in case of failure Selenium commands
Selenium commands Forms of Assertion Wait for Verify command ensures script execution even if the verification has failed Assert
Selenium commands Forms of Assertion Verify WaitFor command waits for a certain condition to be met before executing the next test step Assert
Key features of Selenium IDE
Key features Re-usability of test scripts Many of the test scripts have test steps that involve signing into an application or creating an account or signing out of an app It is redundant and a waste of time to recreate these test steps over and over The new Selenium IDE allows one script to run another
Key features Debugging in IDE The Selenium IDE facilitates debugging of test scripts It allows the user to provide breakpoints where the execution of the test script halts, thus allowing the user to inspect the browser’s state
Key features Control flow statements Various pop-ups, notifications, subscription windows, etc can be handled easily using control flow statements If “X” appears, do “this” to handle it Conditional logic(control flow) statements can be added to the IDE test script
Key features Selenium Side Runner The new Selenium IDE allows the users to run all Selenium IDE tests on any browser, in parallel, and on a Grid without needing to write any code This ensures that the test suite executes faster Prerequisites— • Node version 8 or 10 • npm package that typically gets installed with Node • Selenium-side-runner • Browser driver
Limitations of Selenium IDE
Limitations of Selenium IDE Cannot export to WebDriver scripts yet
Limitations of Selenium IDE Cannot export to WebDriver scripts yet Does not support data driven testing yet
Limitations of Selenium IDE Cannot export to WebDriver scripts yet Does not support data driven testing yet Cannot perform database testing
Limitations of Selenium IDE Cannot export to WebDriver scripts yet Does not support data driven testing yet Cannot perform database testing Cannot provide detailed test report
Key takeaways  What is Selenium?  What is Selenium IDE?  Advancements with new IDE  Working principle of Selenium IDE  Components of Selenium IDE  Selenium commands  Key features of Selenium IDE  Limitations of Selenium IDE
Selenium IDE Tutorial For Beginners | Selenium IDE Tutorial | What Is Selenium IDE? | Simplilearn

Selenium IDE Tutorial For Beginners | Selenium IDE Tutorial | What Is Selenium IDE? | Simplilearn

  • 2.
    What’s in itfor you?  What is Selenium?  What is Selenium IDE?  Advancements with new IDE  Working principle of Selenium IDE  Components of Selenium IDE  Selenium commands  Key features of Selenium IDE  Limitations of Selenium IDE
  • 3.
  • 4.
    Selenium is anautomated testing tool used to test web applications across various browsers What is Selenium?
  • 5.
    Selenium is anautomated testing tool used to test web applications across various browsers Selenium IDE Selenium RC Selenium WebDriver Selenium Grid What is Selenium?
  • 6.
    Selenium is anautomated testing tool used to test web applications across various browsers Selenium RC Selenium WebDriver Selenium Grid Selenium IDE Let’s learn about Selenium IDE in detail What is Selenium?
  • 7.
  • 8.
    What is SeleniumIDE? Developed by Shinya Kastani in 2006
  • 9.
    What is SeleniumIDE? Developed by Shinya Kastani in 2006 Firefox add-on that helps create tests
  • 10.
    What is SeleniumIDE? Developed by Shinya Kastani in 2006 Firefox add-on that helps create tests Easy-to-use interface to build automated test scripts
  • 11.
    What is SeleniumIDE? Developed by Shinya Kastani in 2006 Firefox add-on that helps create tests Easy-to-use interface to build automated test scripts Records user interactions on the browser and exports them as a reusable script
  • 12.
    What is SeleniumIDE? Developed by Shinya Kastani in 2006 Firefox add-on that helps create tests Easy-to-use interface to build automated test scripts Records user interactions on the browser and exports them as a reusable script Generally used as a prototyping tool
  • 13.
    What is SeleniumIDE? Selenium IDE is a part of the Selenium suite and was developed to speed up the creation of automation scripts. It’s a rapid prototyping tool and can be used by engineers with no programming knowledge whatsoever
  • 14.
  • 15.
    Resurrection of SeleniumIDE Firefox upgraded to a new Firefox 55 version which no longer supported Selenium IDE
  • 16.
    Resurrection of SeleniumIDE Selenium IDE ceased to exist in August 2017 Firefox upgraded to a new Firefox 55 version which no longer supported Selenium IDE
  • 17.
    Resurrection of SeleniumIDE Selenium IDE ceased to exist in August 2017 Firefox upgraded to a new Firefox 55 version which no longer supported Selenium IDE Applitools rewrote the old Selenium IDE and released a new version recently
  • 18.
    Selenium IDE ceasedto exist in August 2017 Firefox upgraded to a new Firefox 55 version which no longer supported Selenium IDE Applitools rewrote the old Selenium IDE and released a new version % Let’s look at the advancements with new Selenium IDE
  • 19.
    Advancements with newSelenium IDE • Traditionally Selenium IDE was only a Firefox plugin. The new IDE supports both Chrome and Firefox • Improved locator functionality • Parallel execution of tests using Selenium command line runner • Provision for control flow statements • Automatically waits for page to load • Supports embedded code-Runs JavaScripts • IDE has a debugger which allows step execution, adding breakpoints • The new version supports code exports
  • 20.
  • 21.
    The recorded scriptis executed so as to verify and monitor for its stability and success rate. The recorded script is now saved for future runs and regressions. SavingPlaying back Working principle Recording Records user interactions with the browser which constitutes the IDE script Selenium IDE
  • 22.
    The recorded scriptis executed so as to verify and monitor for its stability and success rate. The recorded script is now saved for future runs and regressions. SavingPlaying back Working principle Recording Records user interactions with the browser which constitutes the IDE script Selenium IDE
  • 23.
    The recorded scriptis executed to verify and monitor for its stability and success rate The recorded script is now saved for future runs and regressions. SavingPlaying back Working principle Recording Records user interactions with the browser which constitutes the IDE script Selenium IDE
  • 24.
    The recorded scriptis executed to verify and monitor for its stability and success rate The recorded script is now saved for future runs and regressions SavingPlaying back Working principle Recording Records user interactions with the browser which constitutes the IDE script Selenium IDE
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
    Components of IDE Testscript editor box
  • 31.
  • 32.
    Components of IDE Testlog and reference
  • 33.
  • 34.
    Selenium commands Action AccessorsAssertions Commands which interact directly with the application Allow the user to store certain values to a user-defined variable Verifies the current state of the application with an expected state Selenium commands
  • 35.
    Selenium commands Action AccessorsAssertions Commands which interact directly with the application Allow the user to store certain values to a user-defined variable Verifies the current state of the application with an expected state Selenium commands
  • 36.
    Selenium commands Action AccessorsAssertions clickAndWait(), typeAndWait() Allow the user to store certain values to a user-defined variable Verifies the current state of the application with an expected state Selenium commands
  • 37.
    Selenium commands Assertions clickAndWait(), typeAndWait() Verifies thecurrent state of the application with an expected state Action Accessors Allows the user to store certain values to a user-defined variable Selenium commands
  • 38.
    Selenium commands Assertions clickAndWait(), typeAndWait() Verifies thecurrent state of the application with an expected state Action Accessors storeTitle() Selenium commands
  • 39.
    Selenium commands Assertions clickAndWait(), typeAndWait() Verifies thecurrent state of the application with an expected state Action Accessors storeTitle() Selenium commands
  • 40.
    Forms of Assertion VerifyWait for Assert command makes sure that the test execution is terminated in case of failure Selenium commands
  • 41.
    Selenium commands Forms ofAssertion Wait for Verify command ensures script execution even if the verification has failed Assert
  • 42.
    Selenium commands Forms ofAssertion Verify WaitFor command waits for a certain condition to be met before executing the next test step Assert
  • 43.
    Key features ofSelenium IDE
  • 44.
    Key features Re-usability oftest scripts Many of the test scripts have test steps that involve signing into an application or creating an account or signing out of an app It is redundant and a waste of time to recreate these test steps over and over The new Selenium IDE allows one script to run another
  • 45.
    Key features Debugging inIDE The Selenium IDE facilitates debugging of test scripts It allows the user to provide breakpoints where the execution of the test script halts, thus allowing the user to inspect the browser’s state
  • 46.
    Key features Control flowstatements Various pop-ups, notifications, subscription windows, etc can be handled easily using control flow statements If “X” appears, do “this” to handle it Conditional logic(control flow) statements can be added to the IDE test script
  • 47.
    Key features Selenium SideRunner The new Selenium IDE allows the users to run all Selenium IDE tests on any browser, in parallel, and on a Grid without needing to write any code This ensures that the test suite executes faster Prerequisites— • Node version 8 or 10 • npm package that typically gets installed with Node • Selenium-side-runner • Browser driver
  • 48.
  • 49.
    Limitations of SeleniumIDE Cannot export to WebDriver scripts yet
  • 50.
    Limitations of SeleniumIDE Cannot export to WebDriver scripts yet Does not support data driven testing yet
  • 51.
    Limitations of SeleniumIDE Cannot export to WebDriver scripts yet Does not support data driven testing yet Cannot perform database testing
  • 52.
    Limitations of SeleniumIDE Cannot export to WebDriver scripts yet Does not support data driven testing yet Cannot perform database testing Cannot provide detailed test report
  • 53.
    Key takeaways  Whatis Selenium?  What is Selenium IDE?  Advancements with new IDE  Working principle of Selenium IDE  Components of Selenium IDE  Selenium commands  Key features of Selenium IDE  Limitations of Selenium IDE