Based on the playwright test, this repository demonstrates the testing capabilities of BotBrowser.
-
Create a
.env
File: Add the following configurations to the.env
file in the root directory of the project:BROWSER_EXECUTABLE_PATH=/path/to/botbrowser/executable BOT_PROFILE_PATH=/path/to/bot/profile.enc
-
Example Configuration:
BROWSER_EXECUTABLE_PATH=/usr/local/bin/chromium BOT_PROFILE_PATH=/home/user/bot_profiles/chrome131_win11_x64.enc
-
Ensure the paths are correctly set for your environment. The
BROWSER_EXECUTABLE_PATH
points to the BotBrowser executable, andBOT_PROFILE_PATH
points to a valid BotBrowser profile.
After configuring the .env
file, you can execute the tests using the Playwright test runner. Follow these steps:
-
Install the required dependencies:
npm install
-
Run the tests:
npx playwright test
-
View the test results: The results will be displayed directly in the terminal. You can also generate a detailed HTML report with:
npx playwright show-report
-
Demonstration Purpose Only: These tests are provided exclusively for demonstration purposes to showcase the capabilities of BotBrowser. They serve as proof-of-concept and should not be used for any illegal or unethical purposes.
-
No Responsibility Assumed: This project does not assume responsibility for any misuse of the provided tests. Users must ensure they comply with applicable laws and terms of service.
For further assistance, refer to the Playwright documentation.