File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
tests/address_bar_and_search Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 1
1
import time
2
+
2
3
import pytest
3
4
from selenium .webdriver import Firefox
4
5
5
6
from modules .browser_object import Navigation
6
7
from modules .page_object import AboutTelemetry
8
+ from modules .page_object_about_config import AboutConfig
7
9
from modules .util import Utilities
8
10
9
11
@@ -21,22 +23,24 @@ def test_google_withads_url_bar_us(driver: Firefox):
21
23
22
24
# instantiate objects
23
25
nav = Navigation (driver ).open ()
26
+ about_config = AboutConfig (driver )
27
+ util = Utilities ()
28
+
29
+ # change pref value in order to not display accept cookies banner
30
+ about_config .change_pref_value ("cookiebanners.service.mode" , 1 )
31
+
24
32
nav .search ("iphone" )
25
33
time .sleep (5 )
26
34
about_telemetry = AboutTelemetry (driver ).open ()
27
- util = Utilities ( )
35
+ time . sleep ( 2 )
28
36
29
37
# Click on Raw JSON, switch tab and click on Raw Data
30
38
about_telemetry .get_element ("category-raw" ).click ()
31
39
about_telemetry .switch_tab ()
32
40
about_telemetry .get_element ("rawdata-tab" ).click ()
33
- time .sleep (5 )
34
-
35
- #Verify the following ping is recorded: ""browser.search.withads.urlbar": { "google:tagged": 1}".
36
41
42
+ # Verify the following ping is recorded: ""browser.search.withads.urlbar": { "google:tagged": 1}".
37
43
json_data = util .decode_url (driver )
38
44
assert util .assert_json_value (
39
- json_data ,
40
- '$..["browser.search.withads.urlbar"].["google:tagged"]' ,
41
- 1 ,
45
+ json_data , '$..["browser.search.withads.urlbar"].["google:tagged"]' , 1
42
46
)
You can’t perform that action at this time.
0 commit comments