This repository was archived by the owner on Aug 10, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
eyes_selenium/applitools/selenium/capture Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 11from __future__ import absolute_import , unicode_literals
22
33import json
4- import typing as tp
54import multiprocessing as mp
5+ import typing as tp
66from collections import OrderedDict
77
88import requests
99import tinycss2
10-
1110from applitools .core import logger
1211from applitools .core .utils import general_utils
1312from applitools .core .utils .compat import urljoin
1817__all__ = ("get_full_window_dom" ,)
1918_CAPTURE_CSSOM_SCRIPT = """
2019function extractCssResources() {
21- cssAndText = Array.from(document.querySelectorAll('link[rel="stylesheet"],
22- style')).map(el => {
20+ cssAndText = Array.from(document.querySelectorAll(
21+ 'link[rel="stylesheet"], style')).map(el => {
2322 if (el.tagName.toUpperCase() === 'LINK') {
2423 return [null, el.getAttribute('href')];
2524 } else {
3029}
3130return extractCssResources();
3231"""
33- _CAPTURE_FRAME_SCRIPT = """function captureFrame({ styleProps, attributeProps,
34- rectProps, ignoredTagNames }) {
32+ _CAPTURE_FRAME_SCRIPT = """
33+ function captureFrame({ styleProps, attributeProps, rectProps, ignoredTagNames }) {
3534 const NODE_TYPES = {
3635 ELEMENT: 1,
3736 TEXT: 3,
You can’t perform that action at this time.
0 commit comments