A Python based SDK for web automation using Selenium.
Released under MIT by @Mauricio.
Email : Mauricio
To use this application you must have any of the following browsers installed:
1. Introduction
Shows how to get access to your API key.
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.
In your terminal install the Web-Browser
package with pip.
pip install browserdriver
Choose the driver from one of the browsers you have installed:
- Chrome
- Firefox
- Opera
- Edge
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.
Place the Chrome Driver somewhere accessible by your project. Copy the path location of the Chrome Driver.
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
Open the terminal and open the bash profile.
vi ~/.bash_profile
Write into the editor:
export CHROME_DRIVER=./YOUR_CHROME_DRIVER_PATH
Starting the Web-Browser
package.
from web_browser import Driver
from web_browser.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()