Skip to content

Commit 6d5ebce

Browse files
add new selector information.
1 parent 90b9936 commit 6d5ebce

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

SELECTOR_INFO.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -949,6 +949,20 @@ Location: about:preferences#privacy in Exceptions - Saved Passwords modal
949949
Path to .json: modules/data/about_prefs.components.json
950950
```
951951
```
952+
Selector Name: actions-menu
953+
Selector Data: "richlistitem[type='{.*}'] menulist.actionsMenu"
954+
Description: Select Application list that handles how downloads are handled
955+
Location: about:preferences#general Applications subsection
956+
Path to .json: modules/data/about_prefs.components.json
957+
```
958+
```
959+
Selector Name: actions-menu-option
960+
Selector Data: "richlistitem[type='{.*}'] menuitem[label='{.*}']"
961+
Description: Select download option from Application List
962+
Location: about:preferences#general Applications subsection
963+
Path to .json: modules/data/about_prefs.components.json
964+
```
965+
```
952966
Selector Name: use-primary-password
953967
Selector Data: "useMasterPassword"
954968
Description: Checkbox for using primary password
@@ -2002,6 +2016,13 @@ Location: any element that supports the attribute (usually text)
20022016
Path to .json: modules/data/generic_pdf.components.json
20032017
```
20042018
```
2019+
Selector Name: pdf-text-layer
2020+
Selector Data: "textLayer"
2021+
Description: first instance of a text span.
2022+
Location: any element that supports the attribute (usually text)
2023+
Path to .json: modules/data/generic_pdf.components.json
2024+
```
2025+
```
20052026
Selector Name: html-body
20062027
Selector Data: "html"
20072028
Description: The html tag of the pdf

modules/browser_object_navigation.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,10 @@ def get_download_button(self) -> WebElement:
230230
downloads_button = self.get_element("downloads-button")
231231
return downloads_button
232232

233+
def click_download_button(self) -> BasePage:
234+
self.get_download_button().click()
235+
return self
236+
233237
@BasePage.context_chrome
234238
def wait_for_download_animation_finish(
235239
self, downloads_button: WebElement

modules/page_object_generics.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
from termios import VLNEXT
21
from time import sleep
3-
from typing import Literal
42

53
from selenium.webdriver import Firefox
64
from selenium.webdriver.common.by import By

0 commit comments

Comments
 (0)