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:
Run with CLI:
Install selenium-side-runner: yarn global add selenium-side-runner
...
Step 3: Playback your login record with button run all test/ run current test.
...
Cross-browser:
Save project and move file into folder test and run on terminal, ensure you installed Install selenium-side-runner and Install web drivers:
Code Block |
---|
selenium-side-runner -c browserName=chrome Path_Folder/test.side |
Reference
webpage : https://selenium.dev/selenium-ide/
...
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.
...
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