Skip to main content

Python Browser Driver

A Python based SDK for web automation using Selenium.

License

License issues - cards

Released under MIT by @Mauricio.

Email : Mauricio

Overview

To use this application you must have any of the following browsers installed:

Chrome - Compatible

firefox - Compatible (minor artifacts)

opera - Compatible

edge - Compatible

Wiki - Full documentation

Table of contents

1. Introduction

Shows how to get access to your API key.

2. Getting Started

Shows how to log in to the client and use the basic code interface

3. Services

Data provided outside of the game server. Like server status, user id, and auto extension plan.

4. GameServer

Data directly related to the game server. This includes the player list, game settings, etc.


Installation

In your terminal install the WebDriver package with pip.

pip install browserdriver

Browser Drivers

Choose the driver from one of the browsers you have installed:

  • Chrome
  • Firefox
  • Opera
  • Edge

Chrome

Download the Chrome Driver

Locate your Chrome browser version. Open the menu list on Chrome and navigate down to the Help option. Then click on About Google Chrome. In the example below, the driver to download is version 111.

Chrome is up-to-date.

Version 111.#.####.### (Official Build) (64-bit)

Navigate over to ChromeDriver and download the driver which compliments your browser.

Environment Variables

Place the Chrome Driver somewhere accessible by your project. Copy the path location of the Chrome Driver.

Windows PC

Open the system properties in the control panel. At the bottom right, click on Environments Variables.... A new window should pop up.

Create a new User variable:

  • Variable Name: CHROME_DRIVER
  • Variable Value: C:/YOUR_CHROME_DRIVER_PATH

MacOS - Bash

Open the terminal and open the bash profile.

vi ~/.bash_profile

Write into the editor:

export CHROME_DRIVER=./YOUR_CHROME_DRIVER_PATH

Example

Starting the WebDriver.

from webdriver import Driver
from webdriver.chrome import Chrome
import os

chrome = Chrome(os.getenv('CHROME_DRIVER'))
driver = Driver(chrome)
driver.get('https://www.google.com')


# Must quit chrome before quitting the application
# else the driver will remain hanging until PC reboot.
chrome.quit()

Metadata

Release files for browserdriver 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for browserdriver 0.0.6
File Size Uploaded
browserdriver-0.0.6.tar.gz 14.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for browserdriver 0.0.6
File Interpreter ABI Platform
browserdriver-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 34.1 kB

Release files / browserdriver-0.0.6.tar.gz

Download URL browserdriver-0.0.6.tar.gz
Size 14.2 kB
Tags Source
SHA-256 checksum
How to use checksums
15014e03e25ffb91865609aff981945a2cdc579d9da15bfa89160c5725269441
BLAKE2b-256 checksum
How to use checksums
f45027008a5739db9f637aa5a5e92108bfbe210853a9637bc2dd436f5cf5f08d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / browserdriver-0.0.6-py3-none-any.whl

Download URL browserdriver-0.0.6-py3-none-any.whl
Size 19.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
400ed71d2903c0717de0a8f7ccfadedbef7f8d80d556858405f864ea63d6be7a
BLAKE2b-256 checksum
How to use checksums
eb168380454228bdc3b1b105f204298828eb8b6e59d00973f158d08b4d980226
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page