Skip to content

Commit bce35d5

Browse files
author
dmy.berezovskyi
committed
fix ruff
1 parent b731cd4 commit bce35d5

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

src/locators/locators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ class General:
66

77

88
class TextFields:
9-
USER_NAME = (By.ID, "userName")
9+
USER_NAME = (By.ID, "userName")

src/pageobjects/base_page.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from typing import Tuple, Optional, Literal
33
from selenium.webdriver.common.by import By
44
from selenium.webdriver.remote.webelement import WebElement
5-
from selenium.webdriver.support import expected_conditions as EC
5+
from selenium.webdriver.support import expected_conditions as ec
66
from selenium.webdriver.support.wait import WebDriverWait
77
from selenium.common.exceptions import (
88
TimeoutException, ElementNotVisibleException
@@ -57,10 +57,10 @@ def wait_for(
5757
waiter = waiter or self._wait
5858

5959
conditions = {
60-
"clickable": EC.element_to_be_clickable(locator),
60+
"clickable": ec.element_to_be_clickable(locator),
6161
# Pass the locator tuple as a single argument
62-
"visible": EC.visibility_of_element_located(locator),
63-
"present": EC.presence_of_element_located(locator),
62+
"visible": ec.visibility_of_element_located(locator),
63+
"present": ec.presence_of_element_located(locator),
6464
}
6565

6666
if condition not in conditions:
@@ -89,9 +89,7 @@ def click(
8989

9090
# @log()
9191
# @timing
92-
def set(
93-
self, locator: Locator, text: str, wait_type: Optional[WaitType] = None
94-
):
92+
def set(self, locator: Locator, text: str, wait_type: Optional[WaitType] = None):
9593
"""
9694
Set text in an input field.
9795
"""

src/pageobjects/text/fill_form.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from locators.locators import TextFields
22
from pageobjects.base_page import BasePage
3-
from utils.logger import log, Logger
3+
from utils.logger import log
44

55

66
class FillForm(BasePage):

0 commit comments

Comments
 (0)