def test_filter_opts(self, selenium):
self.get(selenium, self.baseurl + '/ofx')
acct_filter = Select(selenium.find_element_by_id('account_filter'))
# find the options
opts = []
for o in acct_filter.options:
opts.append([o.get_attribute('value'), o.text])
assert opts == [
['None', ''],
['1', 'BankOne'],
['2', 'BankTwoStale'],
['3', 'CreditOne'],
['4', 'CreditTwo'],
['6', 'DisabledBank'],
['5', 'InvestmentOne']
]
评论列表
文章目录