Show Menu
Cheatography

Python Selenium Cheat Sheet (DRAFT) by

Selenium for web scraping with Python

This is a draft cheat sheet. It is a work in progress and is not finished yet.

INSTAL­LATION

pip install selenium

BASIC WORKFLOWW

from selenium import webdriver
# imports
from seleni­um.w­eb­dri­ver.co­mmon.by import By
from seleni­um.w­eb­dri­ver.co­mmo­n.keys import Keys
driver = webdri­ver.Ch­rome()
# iniciar sesiĆ³n
driver.ge­t("h­ttp­s:/­/ww­w.s­ele­niu­m.d­ev/­sel­eni­um/­web­/we­b-f­orm.ht­ml")
# navegar a una pagina