(context, selector, attribute, value)
| 1168 | @step("Find '{selector}' and set {attribute} to \"{value}\"") |
| 1169 | @step('Find "{selector}" and set {attribute} to \'{value}\'') |
| 1170 | def set_attribute(context, selector, attribute, value): |
| 1171 | sb = context.sb |
| 1172 | value = normalize_text(value) |
| 1173 | if attribute.startswith("'") or attribute.startswith('"'): |
| 1174 | attribute = attribute[1:] |
| 1175 | if attribute.endswith("'") or attribute.endswith('"'): |
| 1176 | attribute = attribute[:-1] |
| 1177 | sb.set_attribute(selector, attribute, value) |
| 1178 | |
| 1179 | |
| 1180 | @step("Find all '{selector}' and set {attribute} to '{value}'") |
nothing calls this directly
no test coverage detected
searching dependent graphs…