@@ -97,16 +97,8 @@ InternetExplorerOptions options = new InternetExplorerOptions();
97
97
options.waitForUploadDialogUpTo(Duration.ofSeconds(2));
98
98
WebDriver driver = new RemoteWebDriver(options);
99
99
{{< /tab >}}
100
- {{< tab header="Python" >}}
101
- from selenium import webdriver
102
-
103
- options = webdriver.IeOptions()
104
- options.file_upload_dialog_timeout = 2000
105
- driver = webdriver.Ie(options=options)
106
-
107
- driver.get("http://www.google.com ")
108
-
109
- driver.quit()
100
+ {{< tab header="Python" text=true >}}
101
+ {{< gh-codeblock path="/examples/python/tests/browsers/test_internet_explorer.py#L28-L29" >}}
110
102
{{< /tab >}}
111
103
{{< tab header="CSharp" >}}
112
104
var options = new InternetExplorerOptions();
@@ -150,16 +142,8 @@ InternetExplorerOptions options = new InternetExplorerOptions();
150
142
options.destructivelyEnsureCleanSession();
151
143
WebDriver driver = new RemoteWebDriver(options);
152
144
{{< /tab >}}
153
- {{< tab header="Python" >}}
154
- from selenium import webdriver
155
-
156
- options = webdriver.IeOptions()
157
- options.ensure_clean_session = True
158
- driver = webdriver.Ie(options=options)
159
-
160
- driver.get("http://www.google.com ")
161
-
162
- driver.quit()
145
+ {{< tab header="Python" text=true >}}
146
+ {{< gh-codeblock path="/examples/python/tests/browsers/test_internet_explorer.py#L38-L39" >}}
163
147
{{< /tab >}}
164
148
{{< tab header="CSharp" >}}
165
149
var options = new InternetExplorerOptions();
@@ -198,16 +182,8 @@ InternetExplorerOptions options = new InternetExplorerOptions();
198
182
options.ignoreZoomSettings();
199
183
WebDriver driver = new RemoteWebDriver(options);
200
184
{{< /tab >}}
201
- {{< tab header="Python" >}}
202
- from selenium import webdriver
203
-
204
- options = webdriver.IeOptions()
205
- options.ignore_zoom_level = True
206
- driver = webdriver.Ie(options=options)
207
-
208
- driver.get("http://www.google.com ")
209
-
210
- driver.quit()
185
+ {{< tab header="Python" text=true >}}
186
+ {{< gh-codeblock path="/examples/python/tests/browsers/test_internet_explorer.py#L48-L49" >}}
211
187
{{< /tab >}}
212
188
{{< tab header="CSharp" >}}
213
189
var options = new InternetExplorerOptions();
@@ -256,16 +232,8 @@ InternetExplorerOptions options = new InternetExplorerOptions();
256
232
options.introduceFlakinessByIgnoringSecurityDomains();
257
233
WebDriver driver = new RemoteWebDriver(options);
258
234
{{< /tab >}}
259
- {{< tab header="Python" >}}
260
- from selenium import webdriver
261
-
262
- options = webdriver.IeOptions()
263
- options.ignore_protected_mode_settings = True
264
- driver = webdriver.Ie(options=options)
265
-
266
- driver.get("http://www.google.com ")
267
-
268
- driver.quit()
235
+ {{< tab header="Python" text=true >}}
236
+ {{< gh-codeblock path="/examples/python/tests/browsers/test_internet_explorer.py#L58-L59" >}}
269
237
{{< /tab >}}
270
238
{{< tab header="CSharp" >}}
271
239
var options = new InternetExplorerOptions();
@@ -303,16 +271,8 @@ InternetExplorerOptions options = new InternetExplorerOptions();
303
271
options.setCapability("silent", true);
304
272
WebDriver driver = new InternetExplorerDriver(options);
305
273
{{< /tab >}}
306
- {{< tab header="Python" >}}
307
- from selenium import webdriver
308
-
309
- options = webdriver.IeOptions()
310
- options.set_capability("silent", True)
311
- driver = webdriver.Ie(options=options)
312
-
313
- driver.get("http://www.google.com ")
314
-
315
- driver.quit()
274
+ {{< tab header="Python" text=true >}}
275
+ {{< gh-codeblock path="/examples/python/tests/browsers/test_internet_explorer.py#L68-L69" >}}
316
276
{{< /tab >}}
317
277
{{< tab header="CSharp" >}}
318
278
InternetExplorerOptions options = new InternetExplorerOptions();
@@ -400,17 +360,8 @@ public class ieTest {
400
360
}
401
361
}
402
362
{{< /tab >}}
403
- {{< tab header="Python" >}}
404
- from selenium import webdriver
405
-
406
- options = webdriver.IeOptions()
407
- options.add_argument('-private')
408
- options.force_create_process_api = True
409
- driver = webdriver.Ie(options=options)
410
-
411
- driver.get("http://www.google.com ")
412
-
413
- driver.quit()
363
+ {{< tab header="Python" text=true >}}
364
+ {{< gh-codeblock path="/examples/python/tests/browsers/test_internet_explorer.py#L76-L79" >}}
414
365
{{< /tab >}}
415
366
{{< tab header="CSharp" >}}
416
367
using System;
@@ -495,16 +446,8 @@ public class ieTest {
495
446
}
496
447
}
497
448
{{< /tab >}}
498
- {{< tab header="Python" >}}
499
- from selenium import webdriver
500
-
501
- options = webdriver.IeOptions()
502
- options.force_create_process_api = True
503
- driver = webdriver.Ie(options=options)
504
-
505
- driver.get("http://www.google.com ")
506
-
507
- driver.quit()
449
+ {{< tab header="Python" text=true >}}
450
+ {{< gh-codeblock path="/examples/python/tests/browsers/test_internet_explorer.py#L87-L90" >}}
508
451
{{< /tab >}}
509
452
{{< tab header="CSharp" >}}
510
453
using System;
@@ -575,8 +518,8 @@ To change the logging output to save to a specific file:
575
518
Property key: ` InternetExplorerDriverService.IE_DRIVER_LOGFILE_PROPERTY ` \
576
519
Property value: String representing path to log file
577
520
{{% /tab %}}
578
- {{< tab header="Python" >}}
579
- {{< gh-codeblock path="examples/python/tests/browsers/test_internet_explorer.py#L29 " >}}
521
+ {{< tab header="Python" text=true >}}
522
+ {{< gh-codeblock path="examples/python/tests/browsers/test_internet_explorer.py#L97-L99 " >}}
580
523
{{< /tab >}}
581
524
{{< tab header="CSharp" >}}
582
525
{{< badge-implementation >}}
@@ -605,9 +548,9 @@ To change the logging output to display in the console as STDOUT:
605
548
Property key: ` InternetExplorerDriverService.IE_DRIVER_LOGFILE_PROPERTY ` \
606
549
Property value: ` DriverService.LOG_STDOUT ` or ` DriverService.LOG_STDERR `
607
550
{{% /tab %}}
608
- {{< tab header="Python" >}}
551
+ {{< tab header="Python" text=true >}}
609
552
{{< badge-version version="4.11" >}}
610
- {{< gh-codeblock path="examples/python/tests/browsers/test_internet_explorer.py#L41 " >}}
553
+ {{< gh-codeblock path="examples/python/tests/browsers/test_internet_explorer.py#L109-L111 " >}}
611
554
{{< /tab >}}
612
555
{{< tab header="CSharp" >}}
613
556
{{< badge-implementation >}}
@@ -635,8 +578,8 @@ If logging output is specified, the default level is `FATAL`
635
578
Property key: ` InternetExplorerDriverService.IE_DRIVER_LOGLEVEL_PROPERTY ` \
636
579
Property value: String representation of ` InternetExplorerDriverLogLevel.DEBUG.toString() ` enum
637
580
{{% /tab %}}
638
- {{< tab header="Python" >}}
639
- {{< gh-codeblock path="examples/python/tests/browsers/test_internet_explorer.py#L53 " >}}
581
+ {{< tab header="Python" text=true >}}
582
+ {{< gh-codeblock path="examples/python/tests/browsers/test_internet_explorer.py#L121-L123 " >}}
640
583
{{< /tab >}}
641
584
{{< tab header="CSharp" >}}
642
585
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L85" >}}
@@ -662,9 +605,9 @@ Property value: String representation of `InternetExplorerDriverLogLevel.DEBUG.t
662
605
Property key: ` InternetExplorerDriverService.IE_DRIVER_EXTRACT_PATH_PROPERTY ` \
663
606
Property value: String representing path to supporting files directory
664
607
{{< /tab >}}
665
- {{< tab header="Python" >}}
608
+ {{< tab header="Python" text=true >}}
666
609
{{< badge-version version="4.11" >}}
667
- {{< gh-codeblock path="examples/python/tests/browsers/test_internet_explorer.py#L65 " >}}
610
+ {{< gh-codeblock path="examples/python/tests/browsers/test_internet_explorer.py#L133-L135 " >}}
668
611
{{< /tab >}}
669
612
{{< tab header="CSharp" >}}
670
613
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L98" >}}
0 commit comments