![Example Selenium avatar](https://images.apifyusercontent.com/3Z8h7Eudflr8FD-e7Qp8-giJMVIlyCTFFQkUkm_LCmk/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS95a3BQYzhDY1FYcm1makVoUC84d1JhcFltdHg1VERFWWpzUC1zZWxlbml1bS0wMS0wMS5wbmc.webp)
Example Selenium
Try for free
No credit card required
View all Actors![Example Selenium](https://images.apifyusercontent.com/3Z8h7Eudflr8FD-e7Qp8-giJMVIlyCTFFQkUkm_LCmk/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS95a3BQYzhDY1FYcm1makVoUC84d1JhcFltdHg1VERFWWpzUC1zZWxlbml1bS0wMS0wMS5wbmc.webp)
![Example Selenium](https://images.apifyusercontent.com/3Z8h7Eudflr8FD-e7Qp8-giJMVIlyCTFFQkUkm_LCmk/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS95a3BQYzhDY1FYcm1makVoUC84d1JhcFltdHg1VERFWWpzUC1zZWxlbml1bS0wMS0wMS5wbmc.webp)
Example Selenium
apify/example-selenium
Try for free
No credit card required
Example of loading a web page in headless Chrome using Selenium Webdriver.
Do you want to learn more about this Actor?
Get a demoThe code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more
1# Set API token
2API_TOKEN=<YOUR_API_TOKEN>
3
4# Prepare Actor input
5cat > input.json <<'EOF'
6{
7 "url": "https://www.example.com",
8 "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
9 "proxy": {
10 "useApifyProxy": true
11 }
12}
13EOF
14
15# Run the Actor using an HTTP API
16# See the full API reference at https://docs.apify.com/api/v2
17curl "https://api.apify.com/v2/acts/apify~example-selenium/runs?token=$API_TOKEN" \
18 -X POST \
19 -d @input.json \
20 -H 'Content-Type: application/json'
Developer
Maintained by Apify
Actor metrics
- 7 monthly users
- 2 stars
- 100.0% runs succeeded
- Created in Nov 2017
- Modified 3 months ago
Categories