예제 #1
0
def print_chrome_version():
    assert not platform_util.is_running_on_cygwin(), (
        'Chrome on Windows does not support --version option.')
    chrome_path = remote_executor.get_chrome_exe_path()
    chrome_version = subprocess.check_output([chrome_path,
                                              '--version']).rstrip()
    print '@@@STEP_TEXT@%s<br/>@@@' % (chrome_version)
예제 #2
0
def print_chrome_version():
  assert not platform_util.is_running_on_cygwin(), (
      'Chrome on Windows does not support --version option.')
  chrome_path = remote_executor.get_chrome_exe_path()
  chrome_version = subprocess.check_output([chrome_path, '--version']).rstrip()
  print '@@@STEP_TEXT@%s<br/>@@@' % (chrome_version)
예제 #3
0
def _get_chrome_path(parsed_args):
  if parsed_args.chrome_binary:
    return parsed_args.chrome_binary
  else:
    return remote_executor.get_chrome_exe_path()