Commit 4feac573 authored by Michal Čihař's avatar Michal Čihař

Simplify code

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 0cc68953
......@@ -109,8 +109,7 @@ class SeleniumTests(LiveServerTestCase, RegistrationTestMixin):
def expand_navbar(self):
"""Expand navbar if exists"""
try:
navbar = self.driver.find_element_by_id('navbar-toggle')
navbar.click()
self.driver.find_element_by_id('navbar-toggle').click()
except ElementNotVisibleException:
return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment