Skip to main content

This application is a library for automating with Selenium.

Project description

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 Browsing 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 Browsing package.

from browsing import Driver
from browsing.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()

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

browsing-0.0.2.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

browsing-0.0.2-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file browsing-0.0.2.tar.gz.

File metadata

  • Download URL: browsing-0.0.2.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for browsing-0.0.2.tar.gz
Algorithm Hash digest
SHA256 3b72a01882b6722471312c0abb917bbc46553ad859ce17cedfc5f695d0221bd5
MD5 bd7f5a6e3388b1d2cb135fd6b56b5829
BLAKE2b-256 cc3fd295a665f47d934ffe9fc52147784575bc762d246937c37671d0838440e6

See more details on using hashes here.

File details

Details for the file browsing-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: browsing-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 20.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for browsing-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 157aa1303d4894a835350a5227d69f961b18f0698085c47baa116658e228a9c6
MD5 714156e4ac50f4d280b4f6aaedf3e61c
BLAKE2b-256 459293d027d1784dd446b9eb488c1019d017c7b61e3c523cb679623d5a5560d8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page