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): ...@@ -109,8 +109,7 @@ class SeleniumTests(LiveServerTestCase, RegistrationTestMixin):
def expand_navbar(self): def expand_navbar(self):
"""Expand navbar if exists""" """Expand navbar if exists"""
try: try:
navbar = self.driver.find_element_by_id('navbar-toggle') self.driver.find_element_by_id('navbar-toggle').click()
navbar.click()
except ElementNotVisibleException: except ElementNotVisibleException:
return 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