Skip to content

Instantly share code, notes, and snippets.

@mustafasevim
mustafasevim / selenium-examples.py
Created April 23, 2018 11:13 — forked from hugs/selenium-examples.py
Example code for using the Selenium 2 Python bindings.
# To install the Python client library:
# pip install -U selenium
# Import the Selenium 2 namespace (aka "webdriver")
from selenium import webdriver
# iPhone
driver = webdriver.Remote(browser_name="iphone", command_executor='http://172.24.101.36:3001/hub')
# Android

API workthough

  1. Open a browser

    # start an instance of firefox with selenium-webdriver
    driver = Selenium::WebDriver.for :firefox
    # :chrome -> chrome
    # :ie     -> iexplore
    
  • Go to a specified URL

Keybase proof

I hereby claim:

  • I am mustafasevim on github.
  • I am sevimmustafa (https://keybase.io/sevimmustafa) on keybase.
  • I have a public key ASAAiLDzCAmLopuVhf-iio9MVRhXsSKWDYlTXO6Ry3JrWAo

To claim this, I am signing this object: