@@ -95,6 +95,7 @@ def test_anything(self):
95
95
logging.getLogger("urllib3").setLevel(logging.ERROR)
96
96
urllib3.disable_warnings()
97
97
LOGGER.setLevel(logging.WARNING)
98
+ is_linux = shared_utils.is_linux()
98
99
is_windows = shared_utils.is_windows()
99
100
python3_11_or_newer = False
100
101
if sys.version_info >= (3, 11):
@@ -4828,7 +4829,7 @@ def activate_recorder(self):
4828
4829
from seleniumbase.js_code.recorder_js import recorder_js
4829
4830
4830
4831
if not self.is_chromium():
4831
- if "linux" not in sys.platform :
4832
+ if not is_linux :
4832
4833
c1 = colorama.Fore.BLUE + colorama.Back.LIGHTCYAN_EX
4833
4834
c2 = colorama.Fore.BLUE + colorama.Back.LIGHTGREEN_EX
4834
4835
cr = colorama.Style.RESET_ALL
@@ -5658,7 +5659,7 @@ def __process_recorded_actions(self):
5658
5659
c1 = ""
5659
5660
c2 = ""
5660
5661
cr = ""
5661
- if "linux" not in sys.platform :
5662
+ if not is_linux :
5662
5663
c1 = colorama.Fore.RED + colorama.Back.LIGHTYELLOW_EX
5663
5664
c2 = colorama.Fore.LIGHTRED_EX + colorama.Back.LIGHTYELLOW_EX
5664
5665
cr = colorama.Style.RESET_ALL
@@ -5760,7 +5761,7 @@ def __process_recorded_behave_actions(self, srt_actions, colorama):
5760
5761
c1 = ""
5761
5762
c2 = ""
5762
5763
cr = ""
5763
- if "linux" not in sys.platform :
5764
+ if not is_linux :
5764
5765
c1 = colorama.Fore.RED + colorama.Back.LIGHTYELLOW_EX
5765
5766
c2 = colorama.Fore.LIGHTRED_EX + colorama.Back.LIGHTYELLOW_EX
5766
5767
cr = colorama.Style.RESET_ALL
0 commit comments