File tree Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Original file line number Diff line number Diff line change 1
1
import logging
2
2
3
3
from selenium .common .exceptions import TimeoutException
4
+ from selenium .webdriver import ActionChains
4
5
from selenium .webdriver .common .by import By
5
6
from selenium .webdriver .common .keys import Keys
6
7
from selenium .webdriver .remote .webelement import WebElement
@@ -214,27 +215,6 @@ def context_click_in_awesome_bar(self) -> BasePage:
214
215
actions .context_click (self .awesome_bar ).perform ()
215
216
return self
216
217
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
-
238
218
def get_download_button (self ) -> WebElement :
239
219
"""
240
220
Gets the download button WebElement
You can’t perform that action at this time.
0 commit comments