Fix test_remove_blank_target

This commit is contained in:
Kevin Velghe 2016-03-30 19:54:42 +02:00
parent f4f926cdca
commit dd4710d596

View File

@ -342,7 +342,7 @@ class TestWebElementWrapper:
assert elem._elem.attribute('target') == ''
elem = get_webelem(tagname='a', attributes={'target': '_blank'})
elem_child = get_webelem(tagname='img', attributes={'src':'test'}, parent=elem._elem)
elem_child = get_webelem(tagname='img', parent=elem._elem)
elem_child._elem.encloseWith(elem._elem)
elem_child.remove_blank_target()
assert elem._elem.attribute('target') == '_top'