Skip to content

Commit 614a7ab

Browse files
committed
Add a CDP Mode Geolocation example
1 parent aedbe14 commit 614a7ab

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
"""Geolocation example with CDP Mode"""
2+
from seleniumbase import SB
3+
4+
with SB(uc=True, test=True) as sb:
5+
url = "https://www.openstreetmap.org/"
6+
sb.activate_cdp_mode(url, geoloc=(31.774390, 35.222450))
7+
sb.click("span.geolocate")
8+
sb.assert_url_contains("31.774390/35.222450")
9+
sb.sleep(5)

0 commit comments

Comments
 (0)