def test_collar_style(self): s = ShirtPage(self.driver) s.open() # nothing in there at first assert s.top_search_text == '' s.top_search_text = "buckets" r = s.push_the_search_button() assert s.top_search_text == 'buckets' assert type(s.top_search_text) == types.StringType assert s.top_search_unicode == 'buckets' assert type(s.top_search_unicode) == types.UnicodeType
def test_single_set_by_text(self): s = ShirtPage(self.driver) s.open() s.current_search_category.selected = "text=Art" assert(s.current_search_category.selected == "Art")
def test_single_set_by_index(self): s = ShirtPage(self.driver) s.open() s.current_search_category.selected = "index=2" # indexed from 1 assert(s.current_search_category.selected == "Art")
def test_single_set_by_value(self): s = ShirtPage(self.driver) s.open() s.current_search_category.selected = "value=550" print(s.current_search_category.options) assert(s.current_search_category.selected == "Art")
def test_single_get(self): s = ShirtPage(self.driver) s.open() assert(s.current_search_category.selected == "Clothing, Shoes & Accessories")