Commit 30d15038 authored by Roman Yurchak's avatar Roman Yurchak

Revert change for runPythonAsync

parent 6c9f4fbb
......@@ -107,6 +107,9 @@ class SeleniumWrapper:
def run_async(self, code):
from selenium.common.exceptions import TimeoutException
if isinstance(code, str) and code.startswith('\n'):
# we have a multiline string, fix indentation
code = textwrap.dedent(code)
self.run_js(
"""
window.done = false;
......
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