[root@f10ef30c5c57 /]# vi test.robot [root@f10ef30c5c57 /]# robot --version /usr/local/bin/python: error while loading shared libraries: libpython3.11.so.1.0: cannot open shared object file: No such file or directory [root@f10ef30c5c57 /]# export LD_LIBRARY_PATH=/usr/local/lib [root@f10ef30c5c57 /]# robot --version Robot Framework 6.1.1 (Python 3.11.7 on linux) [root@f10ef30c5c57 /]# robot --include WIP test.robot ============================================================================== Test :: This page contains operations which are common in nature ============================================================================== Verify Chrome test Current time at TC start is : 2025-02-21 07:51:23 Any previous opened browser if present is closed. Verify Chrome test | PASS | ------------------------------------------------------------------------------ Test :: This page contains operations which are common in nature | PASS | 1 test, 1 passed, 0 failed ============================================================================== Output: /output.xml Log: /log.html Report: /report.html [root@f10ef30c5c57 /]# vi test.robot [root@f10ef30c5c57 /]# robot --include WIP test.robot ============================================================================== Test :: This page contains operations which are common in nature ============================================================================== Verify Chrome test Current time at TC start is : 2025-02-21 07:53:42 Any previous opened browser if present is closed. Verify Chrome test | FAIL | SessionNotCreatedException: Message: session not created: probably user data directory is already in use, please specify a unique value for --user-data-dir argument, or don't use --user-data-dir Stacktrace: #0 0x55bfa42b3bba #1 0x55bfa3d51790 #2 0x55bfa3d8abc5 #3 0x55bfa3d8692f #4 0x55bfa3dd7369 #5 0x55bfa3dd6896 #6 0x55bfa3dc8823 #7 0x55bfa3d94a88 #8 0x55bfa3d95bf1 #9 0x55bfa427d15b #10 0x55bfa42810e2 #11 0x55bfa426a01c #12 0x55bfa4281cd4 #13 0x55bfa424e48f #14 0x55bfa42a24f8 #15 0x55bfa42a26c9 #16 0x55bfa42b2a36 #17 0x7f98ce45a1ca start_thread ------------------------------------------------------------------------------ Test :: This page contains operations which are common in nature | FAIL | 1 test, 0 passed, 1 failed ============================================================================== Output: /output.xml Log: /log.html Report: /report.html [root@f10ef30c5c57 /]# *** Settings *** Documentation This page contains operations which are common in nature Library SeleniumLibrary Suite Teardown Close All Browsers *** Variables *** ${URL} https://www.google.co.in/ *** Test Cases *** Verify Chrome [Tags] WIP Chrome Browser setup *** Keywords *** Chrome Browser setup ${time}= get time Log to console Current time at TC start is : ${time} Close All Browsers log to console Any previous opened browser if present is closed. ${chrome_options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver Call Method ${chrome_options} add_argument test-type Call Method ${chrome_options} add_argument --disable-extensions Call Method ${chrome_options} add_argument --headless Call Method ${chrome_options} add_argument --disable-gpu Call Method ${chrome_options} add_argument --no-sandbox Call Method ${chrome_options} add_argument --disable-dev-shm-usage Call Method ${chrome_options} add_argument --ignore-certificate-errors Call Method ${chrome_options} add_argument --start-maximized ${EXCLUDES} Create list enable-logging Call Method ${chrome_options} add_experimental_option excludeSwitches ${EXCLUDES} Create Webdriver Chrome options=${chrome_options} Open Browser about:about Chrome #Open Browser ${URL} Chrome