behavior_timeout_custom (not timeout_from_behavior)

This commit is contained in:
Barbara Miller 2018-01-29 15:26:23 -08:00
parent 70af801da1
commit 92c137f402
2 changed files with 7 additions and 7 deletions

View file

@ -448,11 +448,11 @@ class Browser:
if on_screenshot:
jpeg_bytes = self.screenshot()
on_screenshot(jpeg_bytes)
behavior_script, timeout_from_behavior = brozzler.behavior_script(
behavior_script, behavior_timeout_custom = brozzler.behavior_script(
page_url, behavior_parameters,
behaviors_dir=behaviors_dir)
if timeout_from_behavior > behavior_timeout:
behavior_timeout = timeout_from_behavior
if behavior_timeout_custom > behavior_timeout:
behavior_timeout = behavior_timeout_custom
self.run_behavior(behavior_script, timeout=behavior_timeout)
if skip_extract_outlinks:
outlinks = []