Giter Club home page Giter Club logo

simple_login's Introduction

Automatic Kite Login

Prerequisite

  • Install Python
  • Install Selenium

I am assuming you have already installed the python.

Install Selenium

 pip install -U Selenium 

This command will successfully install the latest Selenium package

Import libraries

  • Step 1: import the web driver
  • Step 2: import WebDriverWait. Web driver wait take two parameter.
    • browser
    • wait time.
  • Step 3: EC is expected_conditions. An operation will be performed only after the condition is fulfilled and presence_of_element_located.
from selenium import webdriver  
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC

Select browser

In my case, I have used firefox.

browser = webdriver.Firefox()

For more details click me.

Redirect

This will navigate to the given URL

browser.get(('https://www.google.com/'))

Locating element

For more detail click me.

Make python file executable

The first step is to install PyInstaller from PyPI.

pip install pyinstaller

Once installed successfully go to the directory you have installed the .py file

pyinstaller --onefile Yourfilename.py

Your executable file is successfully created.

This command will create additional files and folders. Once creation is completed, navigate to 'dist' folder and "Voila!" you will see executable file. Run the file.

Note:- To execute my code, first make changes in the " cred.txt " file and save the file in dist folder, where executable is generated. Or instead of creating the separate credential file, simply add the credential in your main python file and then run the pyinstaller instruction as above. Now, all you need to do is run the executable file once created successfully.

To know more visit pypi or realpython

simple_login's People

Contributors

vikash29singh avatar

Watchers

James Cloos avatar  avatar

Forkers

webclinic017

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.