1
+ import time
2
+
1
3
import pytest
2
4
from selenium .webdriver import Firefox
3
5
4
6
from modules .browser_object_navigation import Navigation
7
+ from modules .browser_object_tabbar import TabBar
5
8
from modules .browser_object_tracker_panel import TrackerPanel
6
9
from modules .page_object_generics import GenericPage
7
10
from modules .page_object_prefs import AboutPrefs
@@ -23,21 +26,30 @@ def test_blocking_fingerprinter(
23
26
"""
24
27
C446404: Blocking Fingerprinters
25
28
"""
26
- # instantiate objects
29
+ # Instantiate objects
27
30
about_prefs_privacy .open ()
28
31
tracker_panel = TrackerPanel (driver )
29
32
tracking_page = GenericPage (driver , url = FINGERPRINTERS_URL )
33
+ tabs = TabBar (driver )
30
34
31
35
# Select custom option and keep just known fingerprinters checked
32
36
about_prefs_privacy .select_trackers_to_block ("known-fingerprints-checkbox" )
33
37
34
- # Access url and click on the shield icon and verify that known fingerprinters are blocked
38
+ # Switch to and new tab and access url snd verify the shield icon
39
+ tabs .new_tab_by_button ()
40
+ tabs .wait_for_num_tabs (2 )
41
+ tabs .switch_to_new_tab ()
42
+
35
43
tracking_page .open ()
36
44
tracker_panel .wait_for_blocked_tracking_icon (nav , tracking_page )
37
45
46
+ # Open the tracker panel and verify fingerprinters are visible
38
47
nav .open_tracker_panel ()
39
- nav .element_visible ("known-fingerprints" )
40
48
41
- # Click on fingerprinters and check if subpanel is correctly displayed
42
- nav .click_on ("known-fingerprints" )
49
+ time .sleep (3 ) # no wait condition do the trick, bug 1974080
50
+
51
+ # Click on fingerprinters
52
+ tracker_panel .click_on ("tracking-finger-prints" )
53
+
54
+ # Check if the subpanel is displayed with the expected title
43
55
nav .element_visible ("fingerprints-blocked-subpanel" )
0 commit comments