Skip to content

Commit 28e3747

Browse files
committed
Fix: linting errors for page_base & test_open_new_bg_tab_via_mouse_and_keyboard
1 parent 9111270 commit 28e3747

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

modules/page_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from typing import List, Union
1212

1313
from pynput.keyboard import Controller, Key
14-
from pynput.mouse import Button, Controller
14+
from pynput.mouse import Button, Controller as MouseController
1515
from pypom import Page
1616
from selenium.common import NoAlertPresentException
1717
from selenium.common.exceptions import (
@@ -573,7 +573,7 @@ def middle_click(self, reference: Union[str, tuple, WebElement], labels =[]):
573573
"""Perform a middle mouse click on desired element"""
574574
with self.driver.context(self.driver.CONTEXT_CONTENT):
575575
self.driver.maximize_window()
576-
mouse = Controller()
576+
mouse = MouseController()
577577
element = self.fetch(reference, labels)
578578

579579
element_location = element.location

tests/tabs/test_open_new_bg_tab_via_mouse_and_keyboard.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import pytest
22
from selenium.webdriver import Firefox
3-
from selenium.webdriver.common.by import By
43

54
from modules.page_object import ExamplePage
65

0 commit comments

Comments
 (0)