Skip to content

Commit 3f55a9a

Browse files
committed
vs/test google withads
1 parent 5128614 commit 3f55a9a

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import time
2+
import pytest
3+
from selenium.webdriver import Firefox
4+
5+
from modules.browser_object import Navigation
6+
from modules.page_object import AboutTelemetry
7+
from modules.util import Utilities
8+
9+
10+
@pytest.fixture()
11+
def add_prefs():
12+
return [
13+
("browser.search.region", "US"),
14+
]
15+
16+
17+
def test_google_withads_url_bar_us(driver: Firefox):
18+
"""
19+
C1365070, verify that Google withads URL bar - US is recorder into telemetry
20+
"""
21+
22+
# instantiate objects
23+
nav = Navigation(driver).open()
24+
nav.search("iphone")
25+
time.sleep(5)
26+
about_telemetry = AboutTelemetry(driver).open()
27+
util = Utilities()
28+
29+
# Click on Raw JSON, switch tab and click on Raw Data
30+
about_telemetry.get_element("category-raw").click()
31+
about_telemetry.switch_tab()
32+
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+
37+
json_data = util.decode_url(driver)
38+
assert util.assert_json_value(
39+
json_data,
40+
'$..["browser.search.withads.urlbar"].["google:tagged"]',
41+
1,
42+
)

0 commit comments

Comments
 (0)