A simple class that can be used to fake Selenium Browser Geolocation
Project description
FakerLocationer
A simple class that can be used to fake Selenium Browser Geolocation
Getting Started
Its very easy to get started with using fakerlocationer. A simple example is shown in usage.py or you can see it below:
''' from fakerlocationer import FakerLocationer from selenium import webdriver
driver = webdriver.Chrome() driver.get("http://www.mylocation.org") f = FakerLocationer(driver) f.setLocation(50, 50) '''python
The only drawbacks of fakerlocationer are that in order for the geolocation to change the page must be fully loaded, and if the page refreshes/changes it'll reset the geolocation
Prerequisites
Pretty much only need Selenium and Python 3
Installing
Can be installed by using pip:
''' pip3 install fakerlocationer '''
Or just by literally downloading fakerlocationer.py and importing it into your project
Built With
- Selenium - Selenium Framework
Authors
- kenevil1 - kenevil1
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Acknowledgments
- To Selenium for making the web testing suite :)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for fakerlocationer-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8d96177f18a9bc45c29ffce3bc9dceff08d0ade7e075c27a0828c0ffcb5eca2 |
|
MD5 | 8dc0c6947fa5e9732e40750bbeb2c667 |
|
BLAKE2b-256 | afaaae8e0e2f571d9af657e12d8dd1577a26c8181682ae699f6c5481aaee7258 |