Skip to content

Commit 1eba9f8

Browse files
committed
Fix Lint found errors
1 parent ce50565 commit 1eba9f8

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

modules/browser_object_navigation.py

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import logging
22

33
from selenium.common.exceptions import TimeoutException
4+
from selenium.webdriver import ActionChains
45
from selenium.webdriver.common.by import By
56
from selenium.webdriver.common.keys import Keys
67
from selenium.webdriver.remote.webelement import WebElement
@@ -214,27 +215,6 @@ def context_click_in_awesome_bar(self) -> BasePage:
214215
actions.context_click(self.awesome_bar).perform()
215216
return self
216217

217-
def set_search_mode(self, search_mode: str) -> BasePage:
218-
"""
219-
set new search location if search_mode in VALID_SEARCH_MODES
220-
221-
Parameter:
222-
search_mode (str): search mode to be selected
223-
224-
Raises:
225-
StopIteration: if a valid search mode is not found in the list of valid elements.
226-
"""
227-
# check if search_mode is valid, otherwise raise error.
228-
if search_mode not in self.VALID_SEARCH_MODES:
229-
raise ValueError("search location is not valid.")
230-
# switch to chrome context
231-
with self.driver.context(self.driver.CONTEXT_CHROME):
232-
# get list of all valid search modes and filter by label
233-
self.get_element(
234-
"search-mode-switcher-option", labels=[search_mode]
235-
).click()
236-
return self
237-
238218
def get_download_button(self) -> WebElement:
239219
"""
240220
Gets the download button WebElement

0 commit comments

Comments
 (0)