Installation¶
Requirements¶
Before installing Robo Appian, ensure you have the following requirements:
- Python 3.12 or higher
- A supported web browser (Chrome, Firefox, Edge, Safari)
- Internet connection for downloading dependencies
Install Robo Appian¶
Using pip (Recommended)¶
Install Robo Appian from PyPI using pip:
Using poetry¶
If you're using Poetry for dependency management:
WebDriver Setup¶
Robo Appian requires a WebDriver to control your browser. Here are the setup instructions for different browsers:
Chrome (Recommended)¶
Then in your Python code:
- Download ChromeDriver from https://chromedriver.chromium.org/
- Extract the executable and add it to your system PATH
- Or specify the path directly in your code:
Firefox¶
- Download GeckoDriver from https://github.com/mozilla/geckodriver/releases
- Extract and add to PATH or specify path directly
Edge¶
Verify Installation¶
Create a simple test script to verify everything is working:
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from robo_appian.utils.ComponentUtils import ComponentUtils
def test_installation():
"""Test script to verify Robo Appian installation"""
# Initialize WebDriver
driver = webdriver.Chrome()
wait = WebDriverWait(driver, 10)
try:
# Test basic functionality
driver.get("https://www.google.com")
# Test Robo Appian utilities
today = ComponentUtils.today()
print(f"✅ Robo Appian installed successfully!")
print(f"✅ Today's date: {today}")
print(f"✅ WebDriver working correctly")
except Exception as e:
print(f"❌ Installation test failed: {e}")
finally:
driver.quit()
if __name__ == "__main__":
test_installation()
Run the test:
Expected output:
Troubleshooting¶
Common Issues¶
1. WebDriver Path Issues¶
Error: selenium.common.exceptions.WebDriverException: 'chromedriver' executable needs to be in PATH
Solution: Use webdriver-manager or add ChromeDriver to your system PATH:
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.chrome.service import Service
service = Service(ChromeDriverManager().install())
driver = webdriver.Chrome(service=service)
2. Browser Version Mismatch¶
Error: SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version X
Solution: Update your browser or use webdriver-manager to automatically download the correct version:
3. Import Errors¶
Error: ModuleNotFoundError: No module named 'robo_appian'
Solution: Ensure you're using the correct Python environment:
# Check your Python version
python --version
# Check if robo_appian is installed
pip list | grep robo_appian
# Reinstall if necessary
pip install --upgrade robo_appian
4. Permission Issues (Linux/Mac)¶
Error: Permission denied when running WebDriver
Solution: Make the WebDriver executable:
Getting Help¶
If you encounter issues not covered here:
- Contact the author for support:
- Email: dinilmithra.mailme@gmail.com
- LinkedIn: Dinil Mithra
- When contacting, please include:
- Your operating system
- Python version (
python --version) - Browser version
- Complete error message
- Minimal code example that reproduces the issue
Next Steps¶
Now that you have Robo Appian installed, you're ready to:
Virtual Environment (Recommended)¶
For better dependency management, consider using a virtual environment:
This keeps your project dependencies isolated and prevents conflicts with other Python projects.