blob: 7876d590a16082581d18915b79317d8497b372ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
# -*- coding: utf-8 -*-
from lettuce import step, world
@step(u'.*I should see active a "([^"]*)" button')
def i_should_see_active_a_status_button(step, status):
browser = world.browser
xpath = "/html/body/div/div[2]/div/table/tbody/tr[1]/td[4]/a"
element = browser.find_by_xpath(xpath).first
assert not element.has_class('disabled')
|