Skip to content

Commit

Permalink
Allow start driver without URL
Browse files Browse the repository at this point in the history
  • Loading branch information
vafliik committed Jan 19, 2018
1 parent 81c4fc7 commit a32556b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions shishito/runtime/platform/web/control_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ def stop_browser(self, delete_cookies=True):
# Cleanup the driver info
del self.drivers[:]

def test_init(self, driver, url):
def test_init(self, driver, url=None):
""" Executed only once after browser starts.
Suitable for general pre-test logic that do not need to run before every individual test-case.
Open given url and wait for given time (setting "default_implicit_wait").
"""

driver.get(url)
if url:
driver.get(url)
driver.implicitly_wait(int(self.shishito_support.get_opt('default_implicit_wait')))

def start_test(self, reload_page=None):
Expand Down

0 comments on commit a32556b

Please sign in to comment.