File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed
tests/security_and_privacy Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 196
196
"selectorData" : " .protections-popup-category.subviewbutton.subviewbutton-iconic.subviewbutton-nav.blocked" ,
197
197
"strategy" : " css" ,
198
198
"groups" : []
199
- }
199
+ },
200
200
201
+ "no-trackers-detected" : {
202
+ "selectorData" : " protections-popup-no-trackers-found-description" ,
203
+ "strategy" : " id" ,
204
+ "groups" : []
205
+ }
201
206
}
Original file line number Diff line number Diff line change
1
+ import pytest
2
+ from selenium .webdriver import Firefox
3
+ from modules .browser_object_navigation import Navigation
4
+
5
+ NOTRACKERS_URL = "http://example.com/"
6
+
7
+ @pytest .fixture ()
8
+ def add_prefs ():
9
+ return []
10
+
11
+
12
+ def test_no_trackers_detected (driver : Firefox ):
13
+ """
14
+ C446391 No trackers are detected
15
+ """
16
+ # instantiate object and access url
17
+ nav = Navigation (driver )
18
+ driver .get (NOTRACKERS_URL )
19
+
20
+ # Click on the shield icon and verify that trackers are detected
21
+ with driver .context (driver .CONTEXT_CHROME ):
22
+ nav .get_element ("shield-icon" ).click ()
23
+ assert nav .get_element ("no-trackers-detected" ).is_displayed ()
You can’t perform that action at this time.
0 commit comments