blob: 8ef59069ab45224d77c33339e2cfa621f0ef7160 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
def InjectJavaScript(tab, jsFileName):
with open(os.path.join(os.path.dirname(__file__), jsFileName)) as f:
js = f.read()
tab.ExecuteJavaScript(js)
|