File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
py/test/selenium/webdriver/common Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,6 @@ def test_should_not_find_element_by_xpath(self):
37
37
self .fail ("Expected NoSuchElementException to have been thrown" )
38
38
except NoSuchElementException as e :
39
39
pass
40
- except Exception as e :
41
- self .fail ("Expected NoSuchElementException to have been thrown but got " + str (e ))
42
40
43
41
def test_finding_dot_slash_elements_on_element_by_xpath_should_find_not_top_level_elements (self ):
44
42
self ._load_simple_page ()
@@ -103,11 +101,9 @@ def test_should_find_element_by_id_when_no_match_in_context(self):
103
101
element = self .driver .find_element_by_id ("test_id_div" )
104
102
try :
105
103
element .find_element_by_id ("test_id_out" )
106
- self .Fail ("Expected NoSuchElementException to have been thrown" )
104
+ self .fail ("Expected NoSuchElementException to have been thrown" )
107
105
except NoSuchElementException as e :
108
106
pass
109
- except Exception as e :
110
- self .Fail ("Expected NoSuchElementException to have been thrown but got " + str (e ))
111
107
112
108
def test_should_find_element_by_link_text (self ):
113
109
self ._load_page ("nestedElements" )
You can’t perform that action at this time.
0 commit comments