File tree 8 files changed +120
-8
lines changed
docs_source_files/content/webdriver
8 files changed +120
-8
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,21 @@ public class proxyTest {
40
40
}
41
41
{{< / code-panel >}}
42
42
{{< code-panel language="python" >}}
43
- # Need PR
43
+ from selenium import webdriver
44
+
45
+ PROXY = "< HOST:PORT > "
46
+ webdriver.DesiredCapabilities.FIREFOX[ 'proxy'] = {
47
+ "httpProxy": PROXY,
48
+ "ftpProxy": PROXY,
49
+ "sslProxy": PROXY,
50
+ "proxyType": "MANUAL",
51
+
52
+ }
53
+
54
+ with webdriver.Firefox() as driver:
55
+ # Open URL
56
+ driver.get("https://selenium.dev ")
57
+
44
58
{{< / code-panel >}}
45
59
{{< code-panel language="csharp" >}}
46
60
// Need pr
Original file line number Diff line number Diff line change @@ -43,7 +43,21 @@ public class proxyTest {
43
43
}
44
44
{{< / code-panel >}}
45
45
{{< code-panel language="python" >}}
46
- # Need PR
46
+ from selenium import webdriver
47
+
48
+ PROXY = "< HOST:PORT > "
49
+ webdriver.DesiredCapabilities.FIREFOX[ 'proxy'] = {
50
+ "httpProxy": PROXY,
51
+ "ftpProxy": PROXY,
52
+ "sslProxy": PROXY,
53
+ "proxyType": "MANUAL",
54
+
55
+ }
56
+
57
+ with webdriver.Firefox() as driver:
58
+ # Open URL
59
+ driver.get("https://selenium.dev ")
60
+
47
61
{{< / code-panel >}}
48
62
{{< code-panel language="csharp" >}}
49
63
// Need pr
Original file line number Diff line number Diff line change @@ -50,7 +50,21 @@ public class proxyTest {
50
50
}
51
51
{{< / code-panel >}}
52
52
{{< code-panel language="python" >}}
53
- # Need PR
53
+ from selenium import webdriver
54
+
55
+ PROXY = "< HOST:PORT > "
56
+ webdriver.DesiredCapabilities.FIREFOX[ 'proxy'] = {
57
+ "httpProxy": PROXY,
58
+ "ftpProxy": PROXY,
59
+ "sslProxy": PROXY,
60
+ "proxyType": "MANUAL",
61
+
62
+ }
63
+
64
+ with webdriver.Firefox() as driver:
65
+ # Open URL
66
+ driver.get("https://selenium.dev ")
67
+
54
68
{{< / code-panel >}}
55
69
{{< code-panel language="csharp" >}}
56
70
// Need pr
Original file line number Diff line number Diff line change @@ -44,7 +44,21 @@ public class proxyTest {
44
44
}
45
45
{{< / code-panel >}}
46
46
{{< code-panel language="python" >}}
47
- # Need PR
47
+ from selenium import webdriver
48
+
49
+ PROXY = "< HOST:PORT > "
50
+ webdriver.DesiredCapabilities.FIREFOX[ 'proxy'] = {
51
+ "httpProxy": PROXY,
52
+ "ftpProxy": PROXY,
53
+ "sslProxy": PROXY,
54
+ "proxyType": "MANUAL",
55
+
56
+ }
57
+
58
+ with webdriver.Firefox() as driver:
59
+ # Open URL
60
+ driver.get("https://selenium.dev ")
61
+
48
62
{{< / code-panel >}}
49
63
{{< code-panel language="csharp" >}}
50
64
// Need pr
Original file line number Diff line number Diff line change @@ -38,7 +38,21 @@ public class proxyTest {
38
38
}
39
39
{{< / code-panel >}}
40
40
{{< code-panel language="python" >}}
41
- # Need PR
41
+ from selenium import webdriver
42
+
43
+ PROXY = "< HOST:PORT > "
44
+ webdriver.DesiredCapabilities.FIREFOX[ 'proxy'] = {
45
+ "httpProxy": PROXY,
46
+ "ftpProxy": PROXY,
47
+ "sslProxy": PROXY,
48
+ "proxyType": "MANUAL",
49
+
50
+ }
51
+
52
+ with webdriver.Firefox() as driver:
53
+ # Open URL
54
+ driver.get("https://selenium.dev ")
55
+
42
56
{{< / code-panel >}}
43
57
{{< code-panel language="csharp" >}}
44
58
// Need pr
Original file line number Diff line number Diff line change @@ -50,7 +50,21 @@ public class proxyTest {
50
50
}
51
51
{{< / code-panel >}}
52
52
{{< code-panel language="python" >}}
53
- # Need PR
53
+ from selenium import webdriver
54
+
55
+ PROXY = "< HOST:PORT > "
56
+ webdriver.DesiredCapabilities.FIREFOX[ 'proxy'] = {
57
+ "httpProxy": PROXY,
58
+ "ftpProxy": PROXY,
59
+ "sslProxy": PROXY,
60
+ "proxyType": "MANUAL",
61
+
62
+ }
63
+
64
+ with webdriver.Firefox() as driver:
65
+ # Open URL
66
+ driver.get("https://selenium.dev ")
67
+
54
68
{{< / code-panel >}}
55
69
{{< code-panel language="csharp" >}}
56
70
// Need pr
Original file line number Diff line number Diff line change @@ -49,7 +49,21 @@ public class proxyTest {
49
49
}
50
50
{{< / code-panel >}}
51
51
{{< code-panel language="python" >}}
52
- # Need PR
52
+ from selenium import webdriver
53
+
54
+ PROXY = "< HOST:PORT > "
55
+ webdriver.DesiredCapabilities.FIREFOX[ 'proxy'] = {
56
+ "httpProxy": PROXY,
57
+ "ftpProxy": PROXY,
58
+ "sslProxy": PROXY,
59
+ "proxyType": "MANUAL",
60
+
61
+ }
62
+
63
+ with webdriver.Firefox() as driver:
64
+ # Open URL
65
+ driver.get("https://selenium.dev ")
66
+
53
67
{{< / code-panel >}}
54
68
{{< code-panel language="csharp" >}}
55
69
// Need pr
Original file line number Diff line number Diff line change @@ -43,7 +43,21 @@ public class proxyTest {
43
43
}
44
44
{{< / code-panel >}}
45
45
{{< code-panel language="python" >}}
46
- # Need PR
46
+ from selenium import webdriver
47
+
48
+ PROXY = "< HOST:PORT > "
49
+ webdriver.DesiredCapabilities.FIREFOX[ 'proxy'] = {
50
+ "httpProxy": PROXY,
51
+ "ftpProxy": PROXY,
52
+ "sslProxy": PROXY,
53
+ "proxyType": "MANUAL",
54
+
55
+ }
56
+
57
+ with webdriver.Firefox() as driver:
58
+ # Open URL
59
+ driver.get("https://selenium.dev ")
60
+
47
61
{{< / code-panel >}}
48
62
{{< code-panel language="csharp" >}}
49
63
// Need pr
You can’t perform that action at this time.
0 commit comments