()
| 5 | |
| 6 | @decorators.print_runtime("Geolocation CDP Example") |
| 7 | def 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 | |
| 18 | if __name__ == "__main__": |
no test coverage detected
searching dependent graphs…