File tree 8 files changed +96
-8
lines changed
docs_source_files/content/support_packages
8 files changed +96
-8
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,18 @@ public void geoLocationTest(){
47
47
// Please raise a PR to add code sample
48
48
{{< / code-panel >}}
49
49
{{< code-panel language="kotlin" >}}
50
- // Please raise a PR to add code sample
50
+ import org.openqa.selenium.chrome.ChromeDriver
51
+ import org.openqa.selenium.devtools.DevTools
52
+
53
+ fun main() {
54
+ val driver = ChromeDriver()
55
+ val coordinates : HashMap<String, Any> = HashMap<String, Any> ()
56
+ coordinates.put("latitude", 50.2334)
57
+ coordinates.put("longitude", 0.2334)
58
+ coordinates.put("accuracy", 1)
59
+ driver.executeCdpCommand("Emulation.setGeolocationOverride", coordinates)
60
+ driver.get("https://www.google.com ")
61
+ }
51
62
{{< / code-panel >}}
52
63
{{< / code-tab >}}
53
64
Original file line number Diff line number Diff line change @@ -41,7 +41,18 @@ public void geoLocationTest(){
41
41
// Please raise a PR to add code sample
42
42
{{< / code-panel >}}
43
43
{{< code-panel language="kotlin" >}}
44
- // Please raise a PR to add code sample
44
+ import org.openqa.selenium.chrome.ChromeDriver
45
+ import org.openqa.selenium.devtools.DevTools
46
+
47
+ fun main() {
48
+ val driver = ChromeDriver()
49
+ val coordinates : HashMap<String, Any> = HashMap<String, Any> ()
50
+ coordinates.put("latitude", 50.2334)
51
+ coordinates.put("longitude", 0.2334)
52
+ coordinates.put("accuracy", 1)
53
+ driver.executeCdpCommand("Emulation.setGeolocationOverride", coordinates)
54
+ driver.get("https://www.google.com ")
55
+ }
45
56
{{< / code-panel >}}
46
57
{{< / code-tab >}}
47
58
Original file line number Diff line number Diff line change @@ -47,7 +47,18 @@ public void geoLocationTest(){
47
47
// Please raise a PR to add code sample
48
48
{{< / code-panel >}}
49
49
{{< code-panel language="kotlin" >}}
50
- // Please raise a PR to add code sample
50
+ import org.openqa.selenium.chrome.ChromeDriver
51
+ import org.openqa.selenium.devtools.DevTools
52
+
53
+ fun main() {
54
+ val driver = ChromeDriver()
55
+ val coordinates : HashMap<String, Any> = HashMap<String, Any> ()
56
+ coordinates.put("latitude", 50.2334)
57
+ coordinates.put("longitude", 0.2334)
58
+ coordinates.put("accuracy", 1)
59
+ driver.executeCdpCommand("Emulation.setGeolocationOverride", coordinates)
60
+ driver.get("https://www.google.com ")
61
+ }
51
62
{{< / code-panel >}}
52
63
{{< / code-tab >}}
53
64
Original file line number Diff line number Diff line change @@ -47,7 +47,18 @@ public void geoLocationTest(){
47
47
// Please raise a PR to add code sample
48
48
{{< / code-panel >}}
49
49
{{< code-panel language="kotlin" >}}
50
- // Please raise a PR to add code sample
50
+ import org.openqa.selenium.chrome.ChromeDriver
51
+ import org.openqa.selenium.devtools.DevTools
52
+
53
+ fun main() {
54
+ val driver = ChromeDriver()
55
+ val coordinates : HashMap<String, Any> = HashMap<String, Any> ()
56
+ coordinates.put("latitude", 50.2334)
57
+ coordinates.put("longitude", 0.2334)
58
+ coordinates.put("accuracy", 1)
59
+ driver.executeCdpCommand("Emulation.setGeolocationOverride", coordinates)
60
+ driver.get("https://www.google.com ")
61
+ }
51
62
{{< / code-panel >}}
52
63
{{< / code-tab >}}
53
64
Original file line number Diff line number Diff line change @@ -51,7 +51,18 @@ public void geoLocationTest(){
51
51
// Please raise a PR to add code sample
52
52
{{< / code-panel >}}
53
53
{{< code-panel language="kotlin" >}}
54
- // Please raise a PR to add code sample
54
+ import org.openqa.selenium.chrome.ChromeDriver
55
+ import org.openqa.selenium.devtools.DevTools
56
+
57
+ fun main() {
58
+ val driver = ChromeDriver()
59
+ val coordinates : HashMap<String, Any> = HashMap<String, Any> ()
60
+ coordinates.put("latitude", 50.2334)
61
+ coordinates.put("longitude", 0.2334)
62
+ coordinates.put("accuracy", 1)
63
+ driver.executeCdpCommand("Emulation.setGeolocationOverride", coordinates)
64
+ driver.get("https://www.google.com ")
65
+ }
55
66
{{< / code-panel >}}
56
67
{{< / code-tab >}}
57
68
Original file line number Diff line number Diff line change @@ -47,7 +47,18 @@ public void geoLocationTest(){
47
47
// Please raise a PR to add code sample
48
48
{{< / code-panel >}}
49
49
{{< code-panel language="kotlin" >}}
50
- // Please raise a PR to add code sample
50
+ import org.openqa.selenium.chrome.ChromeDriver
51
+ import org.openqa.selenium.devtools.DevTools
52
+
53
+ fun main() {
54
+ val driver = ChromeDriver()
55
+ val coordinates : HashMap<String, Any> = HashMap<String, Any> ()
56
+ coordinates.put("latitude", 50.2334)
57
+ coordinates.put("longitude", 0.2334)
58
+ coordinates.put("accuracy", 1)
59
+ driver.executeCdpCommand("Emulation.setGeolocationOverride", coordinates)
60
+ driver.get("https://www.google.com ")
61
+ }
51
62
{{< / code-panel >}}
52
63
{{< / code-tab >}}
53
64
Original file line number Diff line number Diff line change @@ -47,7 +47,18 @@ public void geoLocationTest(){
47
47
// Please raise a PR to add code sample
48
48
{{< / code-panel >}}
49
49
{{< code-panel language="kotlin" >}}
50
- // Please raise a PR to add code sample
50
+ import org.openqa.selenium.chrome.ChromeDriver
51
+ import org.openqa.selenium.devtools.DevTools
52
+
53
+ fun main() {
54
+ val driver = ChromeDriver()
55
+ val coordinates : HashMap<String, Any> = HashMap<String, Any> ()
56
+ coordinates.put("latitude", 50.2334)
57
+ coordinates.put("longitude", 0.2334)
58
+ coordinates.put("accuracy", 1)
59
+ driver.executeCdpCommand("Emulation.setGeolocationOverride", coordinates)
60
+ driver.get("https://www.google.com ")
61
+ }
51
62
{{< / code-panel >}}
52
63
{{< / code-tab >}}
53
64
Original file line number Diff line number Diff line change @@ -41,7 +41,18 @@ public void geoLocationTest(){
41
41
// Please raise a PR to add code sample
42
42
{{< / code-panel >}}
43
43
{{< code-panel language="kotlin" >}}
44
- // Please raise a PR to add code sample
44
+ import org.openqa.selenium.chrome.ChromeDriver
45
+ import org.openqa.selenium.devtools.DevTools
46
+
47
+ fun main() {
48
+ val driver = ChromeDriver()
49
+ val coordinates : HashMap<String, Any> = HashMap<String, Any> ()
50
+ coordinates.put("latitude", 50.2334)
51
+ coordinates.put("longitude", 0.2334)
52
+ coordinates.put("accuracy", 1)
53
+ driver.executeCdpCommand("Emulation.setGeolocationOverride", coordinates)
54
+ driver.get("https://www.google.com ")
55
+ }
45
56
{{< / code-panel >}}
46
57
{{< / code-tab >}}
47
58
You can’t perform that action at this time.
0 commit comments