Skip to content

Instantly share code, notes, and snippets.

@prakhar1989
Created December 24, 2013 16:46
Show Gist options
  • Select an option

  • Save prakhar1989/8115493 to your computer and use it in GitHub Desktop.

Select an option

Save prakhar1989/8115493 to your computer and use it in GitHub Desktop.
Selenium Script to get currencies from AmxRemit
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