Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ggozad committed Aug 27, 2015
1 parent 62e9375 commit 9ea60ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/behaving/web/steps/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,10 @@ def i_select(context, value, name):
assert inp, u'Element not found'
inp.first.check()


@step(u'I select by text "{text}" from "{name}"')
@persona_vars
def i_select(context, text, name):
def i_select_text(context, text, name):
elem = context.browser.driver.find_element_by_name(name)
assert elem, u'Element not found'
select = Select(elem)
Expand Down

0 comments on commit 9ea60ea

Please sign in to comment.