Created
June 9, 2014 14:03
-
-
Save Khrol/67de1980c431c9eb76cc 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.webdriver import Firefox | |
| from selenium.webdriver.common.by import By | |
| driver = Firefox() | |
| driver.get('http://ya.ru') | |
| element = driver.find_element(By.XPATH, 'id("mail")/a') | |
| print element.get_attribute('href') | |
| driver.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment