From d338295774e22be226751149979637aa97b5cde2 Mon Sep 17 00:00:00 2001 From: rbanik30082002 Date: Sun, 3 Aug 2025 12:56:51 +0530 Subject: [PATCH 1/3] Add this below code in line 9 from selenium.webdriver.common.action_chains import ActionChains Added # type : ignore command to avoid the error --- example/screenshot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/example/screenshot.py b/example/screenshot.py index 129465d79..59826d763 100644 --- a/example/screenshot.py +++ b/example/screenshot.py @@ -5,10 +5,10 @@ import subprocess from time import sleep -from selenium.webdriver.common.by import By -from selenium.webdriver.common.keys import Keys -from selenium.webdriver.support import expected_conditions as EC -from selenium.webdriver.support.wait import WebDriverWait +from selenium.webdriver.common.by import By # type: ignore +from selenium.webdriver.common.keys import Keys # type: ignore +from selenium.webdriver.support import expected_conditions as EC # type: ignore +from selenium.webdriver.support.wait import WebDriverWait # type: ignore def parse_args(): From 3172bbbd0e63274755f8303569b9a6c9088a8597 Mon Sep 17 00:00:00 2001 From: rbanik30082002 Date: Sun, 3 Aug 2025 13:03:52 +0530 Subject: [PATCH 2/3] Added the below code in line 9 from selenium.webdriver.common.action_chains import ActionChains Added # type: ignore coomad to avoid the eeror in selenium --- example/screenshot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/example/screenshot.py b/example/screenshot.py index 59826d763..01a34c930 100644 --- a/example/screenshot.py +++ b/example/screenshot.py @@ -6,6 +6,7 @@ from time import sleep from selenium.webdriver.common.by import By # type: ignore +from selenium.webdriver.common.action_chains import ActionChains # type: ignore from selenium.webdriver.common.keys import Keys # type: ignore from selenium.webdriver.support import expected_conditions as EC # type: ignore from selenium.webdriver.support.wait import WebDriverWait # type: ignore From 3b5d676ba035d40c9769b1636e1445880fba3ced Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 3 Aug 2025 07:35:38 +0000 Subject: [PATCH 3/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- example/screenshot.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/example/screenshot.py b/example/screenshot.py index 01a34c930..0652a01ac 100644 --- a/example/screenshot.py +++ b/example/screenshot.py @@ -5,11 +5,10 @@ import subprocess from time import sleep -from selenium.webdriver.common.by import By # type: ignore -from selenium.webdriver.common.action_chains import ActionChains # type: ignore -from selenium.webdriver.common.keys import Keys # type: ignore -from selenium.webdriver.support import expected_conditions as EC # type: ignore -from selenium.webdriver.support.wait import WebDriverWait # type: ignore +from selenium.webdriver.common.by import By # type: ignore +from selenium.webdriver.common.keys import Keys # type: ignore +from selenium.webdriver.support import expected_conditions as EC # type: ignore +from selenium.webdriver.support.wait import WebDriverWait # type: ignore def parse_args():