Created
December 24, 2013 16:46
-
-
Save prakhar1989/8115493 to your computer and use it in GitHub Desktop.
Selenium Script to get currencies from AmxRemit
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 | |
| from selenium.webdriver.support.select import Select | |
| browser = webdriver.Firefox() | |
| browser.get('http://www.amxremit.com') | |
| # get the currency dropdown | |
| select = Select(browser.find_element_by_id("showrate")) | |
| select.select_by_index(3) #for INR currency | |
| browser.find_element_by_id('rateCommand').click() | |
| browser.save_screenshot("test.png") | |
| browser.quit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment