Created
February 27, 2017 19:33
-
-
Save dafma/227197d3cf9fa6b02734c6cc4ce7fb01 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
browser = webdriver.Firefox() | |
print "WebDriver Object", browser | |
browser.maximize_window() | |
browser.get('https://facebook.com') | |
#seleccionamos los datos enque se ingresara el formulario | |
email = browser.find_element_by_name('email') | |
password = browser.find_element_by_name('pass') | |
print "Html elements:" | |
print "Email:", email, "\nPassword:", password | |
email.send_keys('') | |
password.send_keys('') | |
browser.find_element_by_id('loginbutton').click() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment