def get_phantomjs_screenshot(url, screenshot_path, wait, width=1000, height=1000):
    """
    wait is in milliseconds
    """
    phantomjs = pytest.config.getoption('phantomjs')

    cmd = [phantomjs, join(dirname(__file__), "phantomjs_screenshot.js"), url, screenshot_path, str(wait), str(width), str(height)]
    info("Running command: %s" % " ".join(cmd))

    try:
        proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
        proc.wait()
    except OSError:
        fail(" ".join(cmd) % "Failed to run: %s")
        sys.exit(1)

    return json.loads(proc.stdout.read().decode("utf-8"))
dataset/ETHPy150Open bokeh/bokeh/tests/plugins/phantomjs_screenshot.py/get_phantomjs_screenshot/swapped operands of `%`