Skip to content
This repository was archived by the owner on Aug 10, 2022. It is now read-only.

Commit 006d4f1

Browse files
committed
Fix style of js scripts in dom_capture
1 parent 62155ed commit 006d4f1

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

eyes_selenium/applitools/selenium/capture/dom_capture.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
from __future__ import absolute_import, unicode_literals
22

33
import json
4-
import typing as tp
54
import multiprocessing as mp
5+
import typing as tp
66
from collections import OrderedDict
77

88
import requests
99
import tinycss2
10-
1110
from applitools.core import logger
1211
from applitools.core.utils import general_utils
1312
from applitools.core.utils.compat import urljoin
@@ -18,8 +17,8 @@
1817
__all__ = ("get_full_window_dom",)
1918
_CAPTURE_CSSOM_SCRIPT = """
2019
function 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 {
@@ -30,8 +29,8 @@
3029
}
3130
return 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,

0 commit comments

Comments
 (0)