Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

Benefits:

  • Easy to install and use.

  • Light, powerful, shareable, helps in exporting tests

  • Has built-in help feature and it shows the documentation on the selected or entered command.

  • Helps in debugging by displaying the information and error messages.

  • It allows to set breakpoints, insert commands and comments wherever necessary.

  • Provides a good support for extensions.

Limitations:

  • Need to have specific elements or text appear on page to assert, verify

  • Records can be wrong or fail because of css change

  • Not suitable for testing extensive data

  • Incapable of handling multiple windows

  • Connections with the database can not be tested

  • Cannot handle the dynamic part of web-based applications

  • Does not support capturing of screenshots on test failures

  • No feature available for generating result reports


Get started:

( Document reference )

Run with CLI:

Install selenium-side-runner: yarn global add selenium-side-runner

Install web drivers:

  • Chrome: yarn add global chromedriver

  • Firefox: yarn add global geckodriver

  • Edge: yarn add global edgedriver

  • IE: yarn add global iedriver

Launching the runner: selenium-side-runner /path/to/your-project.side

Get more config


Simple tests with login page:

  • Simply import attachment file, then run tests

Kwon tests - Add item to cart:


Reference

webpage : https://selenium.dev/selenium-ide/

Docs : https://selenium.dev/selenium-ide/docs/en/introduction/getting-started

install for chrome : https://chrome.google.com/webstore/detail/selenium-ide/mooikfkahbdckldjjndioackbalphokd


Organizing your tests

Tests

You can add a new test by clicking the + symbol at the top of left side-bar menu 

Suites

Tests can be grouped together into suites.


Command-line Runner

https://selenium.dev/selenium-ide/docs/en/introduction/command-line-runner

Code Expert

Supported Exports

Currently, export to the following languages and test frameworks is supported.

  • C# NUnit

  • Java JUnit

  • JavaScript Mocha

  • Python pytest

https://selenium.dev/selenium-ide/docs/en/introduction/code-export


API Reference

Commands

https://selenium.dev/selenium-ide/docs/en/api/commands

  • open

  • click

  • echo - Prints the specified message into the third table cell in your Selenese tables. Useful for debugging.

  • run script

  • if ~ else

  • select

  • wait for element visible - Wait for a target element to be visible on the page.

  • execute script

    • Executes a snippet of JavaScript in the context of the currently selected frame or window. The script fragment will be executed as the body of an anonymous function. To store the return value, use the 'return' keyword and provide a variable name in the value input field.


Intergrate with jenkins : After Test

  • No labels