Healenium with Robot-Framework usage example
2. Configuration RemoteWebDriver
Go into healenium folder
cd healenium
docker-compose up -d
ATTENTION
Verify the next images are Up and Running
postgres-db
(PostgreSQL database to store etalon selector / healing / report)hlm-proxy
(Proxy client request to Selenium server)hlm-backend
(CRUD service)selector imitator
(Convert healed locator to convenient format)selenium-grid
(Selenium server)
To run test using Healenium create RemoteWebDriver with URL http://<remote webdriver host>:8085
:
*** Variables ***
${TEST_PAGE} https://elenastepuro.github.io/test_env/index.html
${BROWSER} Firefox
${PROXY_URL} http://localhost:8085
*** Keywords ***
Open Remote Chrome Browser
Open Browser ${TEST_PAGE} ${BROWSER} remote_url=${PROXY_URL}
In practice it is easiest to install Robot Framework and
SeleniumLibrary along with its dependencies using pip
_ package
manager. Once you have pip installed, all you need to do is running
these commands:
pip install -r requirements.txt
The test cases
_ are located in the healenium_tests
directory. They can be
executed using the robot
command:
robot healenium_tests