The Selenium browser extension is a plugin that enables Selenium IDE developers to record and replay Infrastructure (API, DB calls). It records these calls automatically while test-cases are being captured.
- Latest Google Chrome installed with a Google account and sync enabled.
- Selenium IDE browser extenstion installed in the browser.
- Avoid having other extensions installed. Extensions such as
hoppscotch
can interfere with the keploy extension.
- Download the latest extension zip from here -
https://github.com/keploy/browser-extension/releases
- Unzip/Extract the file. You can use the UI or use the commandline, eg:
unzip ~/Downloads/keploy-browser-extension-v0.1.3.zip
- Go to the extensions manager and enable Dev mode as shown in the image below.
- Click on the
Load unpacked
button and select the folder and your extension should be loaded.
Coming Soon!
All the external calls will be recorded during recording in Selenium-IDE. Steps for recording:
- Open the Selenium-Ide and load the project.
- Create a new test (testName should not be "Untitled").
- Enter the URL and start doing assertions.
- Stop the selenium recorder before closing the recoding tab.
The external calls are mocked with the recorded outputs during playback of the selenium test. Steps to playback:
- Run the selenium recorded tests.
Overrides the send method and records the outputs of http calls during recording. And uses mock-xmlhttprequest to return the mocked response.
- Fetch is not supported yet.
- Since the outputs of dependency calls are stored in session storage, the recorded tests should not redirect to different origin.
- Maybe other web-extensions can interfare. Please remove them during testing.
- Sync should be enabled on google account because projectName is stored in chrome.storage.sync API.
- Currently, it cannot be installed in firefox because firefox browser do not supports manifest version v3.