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 drawback of fakerlocationer is that in order for the geolocation to change the page must be fully loaded
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-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a292d2a9a9ef8dc1b77c14f4e93689545cea306384ae8ab4baaea1e152edd6ea |
|
MD5 | 132e1a9b3cde18a4774a04e3d363af7a |
|
BLAKE2b-256 | c243ab971656556bc02e3d4cc5d74286668ed8a5b92989033e832d1f282ed5a2 |