Permalink
Browse files

Removes the select_option function

  • Loading branch information...
casschin committed Jan 22, 2013
1 parent 787d595 commit 2041fe2e280f63f1199c3000c16a5b0d667a6724
Showing with 0 additions and 12 deletions.
  1. +0 −12 pages/page.py
View
@@ -54,18 +54,6 @@ def refresh(self):
def open(self, url_fragment):
self.selenium.get(self.base_url + url_fragment)
- def select_option(self, value, locator):
- dropdown = self.selenium.find_element(*locator)
- option_found = False
- all_options = dropdown.find_elements_by_tag_name("option")
- for option in all_options:
- if option.get_attribute("value") == value:
- option_found = True
- option.click()
- break
- if option_found == False:
- raise Exception("Option '" + value + "' was not found, thus not selectable.")
-
def is_element_present(self, *locator):
self.selenium.implicitly_wait(0)
try:

0 comments on commit 2041fe2

Please sign in to comment.