Skip to content

Commit 40cb714

Browse files
committed
add required for page
1 parent 8005284 commit 40cb714

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

modules/browser_object_tracker_panel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def shield_active() -> bool:
3434
with self.driver.context(self.driver.CONTEXT_CONTENT):
3535
page.open()
3636
page.wait_for_page_to_load()
37-
shield_icon = nav.get_element("shield-icon")
37+
shield_icon = self.get_element("shield-icon")
3838
screenshot(str(datetime.datetime.now()))
3939
if (
4040
shield_icon.get_attribute("data-l10n-id")
@@ -57,7 +57,7 @@ def verify_tracker_shield_indicator(self, nav: Navigation) -> BasePage:
5757
Verifies that the shield icon is
5858
"""
5959
with self.driver.context(self.context_id):
60-
shield_icon = nav.get_element("shield-icon")
60+
shield_icon = self.get_element("shield-icon")
6161
assert (
6262
shield_icon.get_attribute("data-l10n-id")
6363
== "tracking-protection-icon-active-container"

modules/data/tracker_panel.components.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,14 @@
5252
"selectorData": "protections-popup-list-host-label",
5353
"strategy": "class",
5454
"groups": []
55+
},
56+
57+
"shield-icon": {
58+
"selectorData": "tracking-protection-icon-container",
59+
"strategy": "id",
60+
"groups": [
61+
"doNotCache",
62+
"requiredForPage"
63+
]
5564
}
5665
}

0 commit comments

Comments
 (0)