https://github.com/im-ahmed-hasan/selenium-cdp-geolocation-spoof
🌍 Use Selenium 4 and Chrome DevTools Protocol (CDP) to simulate browser geolocation for testing location-aware web applications.
https://github.com/im-ahmed-hasan/selenium-cdp-geolocation-spoof
devtools-protocol geolocation java qa qa-automation qaautomation sdet selenium selenium-java selenium-webdriver test-automation testing-tools
Last synced: about 1 month ago
JSON representation
🌍 Use Selenium 4 and Chrome DevTools Protocol (CDP) to simulate browser geolocation for testing location-aware web applications.
- Host: GitHub
- URL: https://github.com/im-ahmed-hasan/selenium-cdp-geolocation-spoof
- Owner: im-ahmed-hasan
- Created: 2025-08-04T21:19:44.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-08-29T18:59:50.000Z (about 1 month ago)
- Last Synced: 2025-08-29T21:02:27.293Z (about 1 month ago)
- Topics: devtools-protocol, geolocation, java, qa, qa-automation, qaautomation, sdet, selenium, selenium-java, selenium-webdriver, test-automation, testing-tools
- Language: Java
- Homepage: https://www.ahmed-hasan.wuaze.com
- Size: 7.81 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 📍 Selenium CDP Geolocation: Kamalganj(Sylhet Region), Bangladesh
Simulate geolocation in Chrome using CDP with Selenium 4.35.0.
This project spoofs the browser to think it's in **Kamalganj(Sylhet Region), Bangladesh**.---
## 🌐 What It Does
- Launches Chrome using Selenium 4
- Uses Chrome DevTools Protocol (CDP)
- Fakes the location to Dhaka
- Opens `https://www.google.com/maps` to verify---
## 🚀 Run Instructions
### 1. Clone the project
```bash
git clone https://github.com/im-ahmed-hasan/selenium-cdp-geolocation-spoof
cd selenium-cdp-geolocation-spoof