MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / main

Function main

examples/cdp_mode/raw_geolocation.py:7–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6@decorators.print_runtime("Geolocation CDP Example")
7def main():
8 location = (48.87645, 2.26340)
9 sb = sb_cdp.Chrome(geoloc=location)
10 sb.goto("https://www.openstreetmap.org/")
11 sb.sleep(2)
12 sb.click('a[aria-label="Show My Location"]')
13 sb.assert_url_contains("48.876450/2.263400")
14 sb.sleep(5)
15 sb.quit()
16
17
18if __name__ == "__main__":

Callers 1

raw_geolocation.pyFile · 0.70

Calls 5

quitMethod · 0.95
gotoMethod · 0.45
sleepMethod · 0.45
clickMethod · 0.45
assert_url_containsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…